I have a simple form that has a checkbox. THe checkbox always appears checked when the page loads. How do I make it appear without a check when the page loads?
Here is my code:
<div id="quote_inputCH" style="width: 110px">
<div id="input_wrap">
<input id="checkpoints" class="styled"...
how can i make this....
goto this link and see the text sliding after regular intervals
well i want to learn to make this so that i could make this
...
it is supposed to be a dynamic news scroller.... but to make this i know i will have to learn the thingy on the link that i gave you... then the next steps are going to take me to dyn...
I need to send an html response to the browser containing a 1920x1080 png. It's a screenshot taken by an html query.
I encode the image in base64 and sends it embedded as an text/html content-type. Something simple like :
<HTML><HEAD>Whatever</HEAD><BODY><img src="data:image/png;base64,data"/></BODY></HTML>
It works fine on FF and Ch...
Why doesn't
$(window['iframeName'].document.body).html()
...work when i change .attr('src')
When i set the src attribute of iframe to any url when i creating the page, this code
$(window['iframeName'].document.body).html()
...will work.
But when i change the src attribute by .attr('src',"www.google.com.sa") and wait to load the...
The script will be called from a URL like example.com/photo.php?id=123 or example.com/photos/123 depending on if the have the pretty URLs featured enabled.
If photo #123 does not exist, a request to example.com/photos/123 should throw a 404 error. But, what about example.com/photo.php?id=123?
...
<a href="companies.php?id='. $_GET['id'] .'&offset='. $next_offset .'"><input id="button" type="button" value="More"/>
i somehow want to send &offset=avalue but useing a input button. without the id.
how can i do the similer thing with useing form action get ?
like ( warning epic fail ) i should add a hidden input or something ?
...
On a page I have an Iframe that contains input boxes, and if I select one of those boxes in FireFox and use document.activeElement, I get the IFrame. Thats okay, I just use that IFrame and get its contentDocument, save it, then do activeElement again and now I get the input box.
However, in Chrome and Safari, when I select one of the bo...
I want to know what value holds in this.id.
<input id='edit" + id + "' type='button' value='Edit' onclick=edit(this.id) />"
The button calls edit().
So, shall i write var newid = id; to get the ID value of edit button.
Thanks
...
I've come across dozens of scripts in which html is echo'd out instead of being stored. I'm wondering if it's generally a good practice of always storing the html in a string due to the flexible nature?
A random example would be that I have a function that returns the html for a dynamic subnavigation. I'm printing the opening div tag, p...
Yes, I know this is probably a bad thing to want to do.
I have converted a web site to Drupal. I think I've done a reasonably good clean job with the markup and CSS starting with the Zen theme. All font sizes are set in em. It's a fixed width layout. That might be a bad decision but ... I basically copied the old site design.
The menu ...
Is there anyway to make the sky/lake background stay still while you scroll?
Site: http://bit.ly/agJiEy
...
So I have a business case where I've got groups (called Bundles) and they can contain other Bundles. Now, in my interface, I'm trying to have it so when you check the top level, it automatically checks (and disables, but I'm not there yet) the child bundles.
In order to accomplish that, each checkbox has an onchange event where it pass...
The current site that I'm working on cleaning up has around 2,000 pages. It's a mess and the old designer used hundreds of include files to ensure that certain bits of content are consistent throughout the entire site.
Now that we're moving this content from all these old HTML pages to Drupal I'd like to somehow get a list of these incl...
Ok - I have this code.
$formBlock = "<form method=\"post\" action=\"$_SERVER[PHP_SELF]\">
<p>First Name: <input name=\"first\" type=\"text\" size=13 maxlength=25 /></p>
<p>Last name: <input name=\"last\" type=\"text\" size=13 maxlength=25 /></p>
<p>City:<input name=\"city\" type=\"text\" size=25 maxlength=50 /></p>
<...
I've been told using tables is the best way to send emails although it's been twice as difficult. I have setup the email in tables, set all of the cells which need backgrounds with the background="" property, as well as using CSS in tags saying the same thing to cover my bases. The body background shows fine in outlook, but the TD backg...
Okay, so I have a snippet of code from a website containing a button:
<button type="button"
onclick="laser(); $.post('sheepDB.php', { vic: vic, num: numVics });">
Activate Her Powers!
</button>
However, when I click the button the first time, the first function executes, but if I click it a second time, both th...
I have an XML document that has an XML node named "Description"
The Description node contains text like "This is a long description."
When the XML file is loaded and displays in a browser, I need just the word "long" to be italicized. I understand that I could use XSLT to style the entire Description node, but how do I use CSS styling ...
I want to print some java, jsp code on webpage in an indented format.
Is There a tool that would do it, right now I have to use  , <, > to get it done, which is very painful
...
I have a list of different items within a select multiple list and I want to auto-append to a form that a user submits.
HTML of category multiple select list:
<select name="category[]" size="4" multiple="multiple" id="group">
<option value='7'>Faculty</option>
<option value='8'>Staff</option>
<option value='6'>Students</opt...
Hi,
I got the following:
<frameset cols="20%,80%">
<frame src="zone1.htm" id="zone1">
<frame src="http://www.google.com" id="zone2">
</frameset>
I got access to zone1.htm and the second frame is loaded from an external website, i want to do using javascript: Reload + Stop + Back + Forward Controls in zone1.htm to control the google ...