Hello all,
I am trying to raise a click event on a submit button in a html form.
I use the .click() jquery to catch the click event and return true at the end of the function.
When I click on the submit button, the jquery functions are raised and a callback is executed, but the $_POST array is empty.
How can I fix this?
code:
<form a...
I have a form that accepts javascript which allows the use of document.write() and I want to validate the output of the javascript which may look like this:
var a = 'book1';
var b = 2;
document.write("</scr"+"ipt>");
document.write("<scr"+"ipt type='text/javascript'src='http://www.example.com/loader.js?mydoc="+a+"&page="+b+"'>")...
For some reason the background on my website is not loading fully. Randomly, not all the time, the website will load with white rectangles around the content of the website. Check out this screenshot to get a better picture, or visit www.thinkitpostit.com to see if it randomly happens for you. Thanks in advance!
...
I have seen many websites triggering a file save-as dialog on a page with existing HTML content. How do they do this?
I know about setting the right headers such as Content-disposition etc. but when I do that, the content of the page does not load, and immediately the file download is triggered...
...
I've got the following problem. In IE if a contenteditable element is nested inside a hyperlink, clicking on the element prevents the hyperlink default behavior, i.e. navigation to another document. In FF it works fine. How can I solve the problem?
Just removing the contentEditable attribute is not a solution since I want this behavior (...
I'm using a set of PNGs to run my cu3er slides. They keep the transparency, until the transition and then they're boxed with a white background. Is there a way to either keep it transparent or set the background color? http://205.186.139.193/ is the test site
Javascript:
<script type="text/javascript">
var flashvars = {};
flashva...
I'm just wondering if it is bad practice to put the <link> tag for hCard profile on every page, if you don't know that the page being rendered has an hCard. My site has hCards - is it worth trimming the link tag out of the pages that don't have them?
<link rel="profile" href="http://microformats.org/profile/hcard">
Does this mean t...
I am developing a jQtouch app and each request done via ajax creates a new div in the document for the loaded content. Only a single div is shown at any one time.
How many div's can I have before the app starts getting unresponsive and slow?
Anyone have any ideas on this?
EDIT: Its an iPad app running on Safari, and it would be less t...
I have a (hidden) html select object in my menu attached to a menu button link, so that clicking the link shows the list so you can pick from it.
When you click the button, it calls some javascript to show the <select>. Clicking away from the <select> hides the list. What I really want is to make the <select> appear fully expanded, as i...
The following code displays correctly in Chrome or IE (the image is 200px wide). In Firefox and Opera the max-width style is ignored completely. Why does this happen and is there a good work around? Also, which way is most standards compliant?
Note
One possible work around for this particular situation is to set max-width to 200px. ...
Is it possible to open a window from PHP that has predefined content? It's obvious how you can open a window from a javascript link that frames an existing page, or just do a target=_blank from a regular a tag that references an existing page. But I am generating a bit of content, and want that content to be opened in a new link (or stre...
I have no idea how to handle this in coldfusion 9, I have a form being submitted (POST) with element checkboxes, called items[].
When I do a <cfdump var="#form#" /> no-problem, I get all the items shown with the proper names like items[] eg:
struct
ITEMS[] 13,14
FIELDNAMES ITEMS[]
however doing a <cfdump var="#form.items[]#" />...
i have developed a mobile version of a page and it uses some mobile specific java and css
i have come across many solutions to point mobile/iphone users to that specific page and desktop users to original webpage.
but what i want is that i get both things in one page and when user is on mobile that certain part of javascript and css ru...
Hello,
I have a transparent table with width:100% which contains some html content.
I use the table in order to position a content element on the screen center.
The table captures mouse events, and the user can't press on links which are positioned beneath it (although it is transparent).
Is there a way to tell the browser to ignore e...
Is there a way to show html source in the browser after insertion by js via ~.innerHTML = Source; ?
...
So i have been searching the web for a javascript source for an Hmac-sha1 algorithm. I saw Crypto's but i cant seem to get it to work, mainly because it has no idea what crypto means. (i copied the .js script functions into my script file) http://code.google.com/p/crypto-js/ I have my base64 encoded function already. that i got from h...
I want to make a textbook where it starts out as a given width/height. Then if users type more then the given amount of space, the textbox expands downward. How do I go about doing this? Do I use css?
The basic textbox just displays a scroll bar when users pass the number of rows allow. How do I make it so the textbox expands the rows b...
Trying to make a simple toggle menu, and I can't seem to hide/show the sub menu using this bit of jQuery:
$(".topic news").mouseup(function(){
$(".feed groups").hide("fast", function(){
$(".feed messages").hide("fast");
$("ul.feed news").toggle("fast");
});
});
Here is the corresponding HTML:
<div class="topic n...
I have the following working code:
ctx = document.getElementById("canvas").getContext('2d');
Is there any way to re-write it to use $? Doing this fails:
ctx = $("#canvas").getContext('2d');
...
I have a div, within the div is a name in an <h4> tag (it's semantically correct with the layout) and a div with some values describing that <h4> value. I want the nested div to be on the right side, and the only way I can get this to work is a fixed-width container and float: right;. As you can guess, the object breaks when the value of...