I would like to add custom (non-project) files to generate some extra pages with Doxygen.
I am (was actually) unsure how these files should be named and how their content should be formatted.
Hi all,
I am learning JQuery and writing a simple data validation for the two fields in
a HTML form:
<FORM name="addpost" id="addpost" method="post" action="/add">
<TABLE BORDER=0 width="100%">
<TR>
<TD>Topic</TD>
<TD>
<DIV ID="topic">
<INPUT type=text name="topic" id="topic" size="72" maxlength="108"/>
</DIV>
</TD>
</TR>
<TR>
<TD>Comments</TD>
<TD>
<DIV ID="topiccontent">
<TEXTAREA rows="12" cols="48" name="content" ID="content">
</TEXTAREA>
</DIV>
</TD>
</TR>
<TR>
<TD>
<INPUT type="submit" value="Send">
</TD>
</TR>
</TABLE>
</FORM>
Here is the JQuery script for checking the data input from the form above:
$('#addpost').submit(function(){
if($('#topic').val()==""){
$('#topic').addClass('hierror');
return false;}
else{$('#topic').removeClass('hierror');}
if($('#topiccontent').val()==""){
$('#topiccontent').addClass('hierror');
return false;}
else{$('#topiccontent').removeClass('hierror');}
});
Here is the CSS for the hierror class:
.hierror{border-style:solid; border-width:12px; border-color:#FF0000;}
('#topic').removeClass('hierror') works but
('#topiccontent').removeClass('hierror') doesn't.
Could you help me please?
I'm trying to parse the dmoz content/structures xml files into mysql, but all existing scripts to do this are very old and don't work well. How can I go about opening a large (+1GB) xml file in php for parsing?
Hi,
I have loaded swf using following code,
var loader:Loader = new Loader();
loader.load(new URLRequest("XYZ.swf"));
addChild(loader);
How do I control height and width of this loaded swf.
I tried
var mc = MovieClip(loader.loaderContentInfo.content);
mc.width = 320;
mc.height = 240;
this gives null object error.
Hi, :)
I set the "height = 100px","width=50px" of a div,but when the content of the div is changing dynamically,i want to let the height adapt to the change,what should i do?Thanks!
i am making my own toobar in firfox .can any one tell me how to add double chevron so that if window resizes then toolbar content can be seen by clicking this double chevron
How can I write a recursive search that I avoid cycles.
My class is this:
class Component(var name: String, var number: Int, var subComponent: Set[Component])
Now I need a way to check whether a component is contained within its subcomponent or between subcomponent of its subcomponent and so on.Avoiding possible cycles caused by other Component.
My method of recursive search must have the following signature,
where subC is the Set [component] of comp.
def content (comp: Component, subC: Set[Component]) : Boolean = {
}
Thanks for the help.
I'm using :
$(window).scroll(function () {
if ($(window).scrollTop() + 10 >= ($(document).height() - $(window).height())) {
loadContent();
}
}
It works fine with Chrome, IE, Firefox but except in Safari. In function loadContent, I used JSON to load data, as this tutorial. But while I test in Safari, It takes the content twice from JSON. If the other takes 9 items, then Safari takes 18 items.
Does anyone know how to solve this problem?
Thanks.
Hello, I have some text in a web browser on my form in visual studio, this form is going to be displayed on a big screen and it's content need to be mirrored(flipped) in order to be seen on the other place through mirror. It is not rotation actually. I know it is possible to do it with images, but it is not applicable in my case, because browser's document is scrolling.
Any help will be greatly appreciated!
How do you send the content of a website form to an email address without disclosing the email address to the user.
Thanks!
PS: If at all possible, I would like this to be in HTML.
c code
extern "C" __declspec(dllexport) int export(LPCTSTR inputFile, string &msg)
{
msg = "haha"
}
c# code
[DllImport("libXmlEncDll.dll")]
public static extern int XmlDecrypt(StringBuilder inputFile, ref Stringbuilder newMsg)
}
I got an error when I try to retrieve the content of newMsg saying that I'm trying to write to a protected memory area.
What is the best way to retrieve the string from c to c#. Thanks.
I am trying to check if a html document includes script tags that are not empty using regular expressions. The regular expression should match any script tag with a content other than whitespaces or linebreaks.
I have tried
<script\b[^>]*>[^.+$]</script>
but this regex only finds script tags with one space.
I want to dynamically set the content of an iframe to that of an html document I have. It is in the form of a string in memory in javascript.
Then i want to print that iframe.
Ideas?
I cannot embed this into the msi - meaning - while building the setup, I do not know the content of the text file. After the setup has been built (the msi is ready), I want to distribute a text file along with the msi and make the setup paste that file inside a particular folder - in my case, the machine's ProgramData folder. Please guide.
I have an iframe. The content is wider than the width I am setting so the iframe gets a horizontal scroll bar. I can't increase the width of the iframe so I want to just remove the scroll bar. I tried setting the scroll property to "no" but that kills both scroll bars and I want the vertical one. I tried setting overflow-x to "hidden" and that killed the horizontal scroll bar in ff but not in IE. sad for me.
I use queries like
"UPDATE MAILSCH.MESSAGE "
+ "SET IDFOLDER=?, SUBJECT=?, CONTENT=?, CREATIONTIME=?, AD_FROM=?, AD_TO=?, STATUS=? "
+ "WHERE IDMESSAGE=?";
May I miss out IDFOLDER without changing query?
Using HttpClient 4.0, Im having an issue where the response I get from the ResponseHandler is only about half of what the actual page content should be (~61k bytes in the string vs ~125k in the page returned to a browser). I cant seem to find any place where there might be some sort of limit that would limit this. Any ideas?
How do i send a JavaScript function to an iframe with external content loaded,
eg
onclick="getElementByID('myiframe').src='fun();'"
is there a way with ajax, i think XMLHttpRequest can help me.
Hoi,
I have a simple app with a surfaceview nothing special one would say. However when installing on my phone I get two warnings.
1 - Phone calls
- read phone state and identity
2 - Storage
- modify/delete SD card content.
My really is nothing more than a simple puzzle and I dont understand why I get these warnings.
Any ideas how to avoid this?
Help is very much appreciated,
Kind regards
Jasper de Keijzer.
I have a parent table and a child table related to the parent table by some REFERENCE.
Suppose I exec a SELECT statement on the child and that it returns the at least one result. Can I arrange for my search to automatically yield all the content of all related parents with this child too?
Or must I always take the reference from the child and put this in a second SELECT statement and exec this myself?
I'm using ASP.net Master page. I've a footer in my page. When content of my page is less, the footer is coming in the middle of the page.
What do i need to do. please suggest.
Thanks.
I'm storing a string in a CCK field.
The problem is getting it back out. I have a node-node_type.tpl.php and ask it
$node->content['field_custom_map_data']['#value']
That returns html, three nested div's and uses HTML entities, I want the pure text, as entered.
What is the Drupal 5 way to fix this?
please see the following code
// redirect to success page
if ($success){
header( 'Location: ../Scripts/_lib/phpmailer-fe.php');
}
else{
print "<meta http-equiv="refresh" content="0;URL=error.html">";
}
its not working
can anybody explain why uploaded php files treated by a server as a text file ?
The symptom is when i try to access a php file, the server send me the content of the file.