I have some asp code where I need to execute some javascript function and then redirect the user to a new page. when i do this ibn my code, I am response writing the javascript to the browser. the issue that i am having is that the redirect occurs on ther server side, before the JS function finishes. Is there a work around for this? Than...
Calling the javascript gurus out there.
Basically my question is regarding how you structure your code, both visually and for functionality for example do you wrap everything in objects using this structure:
var myapp={
binds:function(){
//put some event listeners for jquery etc...
},
otherfunc:function(){
//do some other t...
right now I use a simple formmail script with some JavaScript form validation.
I think what I need to do is add to the JavaScript an if statement which says
if all of these fields validate go to this page, if only 10 fields validate go to this page, if those 10 fields don't validate, produce the standard error messages.
the problem i...
I'm writing a web app that inserts and modifies HTML elements via AJAX using JQuery. It works very nicely, but I want to be sure everything is ok under the bonnet. When I inspect the source of the page in IE or Chrome it shows me the original document markup, not what has changed since my AJAX calls.
I love using the WC3 validator to ...
I have a winform with 2 WebBrowser control. Is there a way for one page to communicate with the other directly?
For example in HTML and frames, one page can access window.parent.frames[1].document for example.
...
I need to have a function called after a larger image is loaded on the page. I've tried some various solutions that I've found on here and around the web, but none either fit or work. Here's what I've tried that seems to make the most sense...and this is using jQuery
var imgs = $('#bgStage img.bg'),
imgCnt = imgs.length, cnt = 0...
I need either a javascript which can click on a button. The thing is, there are 100+ buttons on the page all with the same value. The name is unique but quite long.
The full name of the element is something like :
actions[http://apps.facebook.com/frontierville/giftaccept.php?next=giftaccept.php&senderId=1%3A1325206719&...
This is my first time using JQuery in any of my projects.
I have implemented the superfish menu.
On some of my pages I have a horizontal scroll. I would like to make the menu float on the center of the page as the page is scrolled.
Also I need to make sure that the submenu on the far right hand side of the menu does not open up off ...
I have an HTML file that has a set of divs with the class "block".
I'd like for these to sort of slide into place when the page loads, and I'm trying to use jQuery's animate function for this. However, I'm a total noob to jQuery, and I'm getting a bug that the tutorials at the jQuery site aren't helping with.
Here's my code:
$(documen...
i create this tiny JS so i can control the form submit with jQuerty
$('#submit').click(function() {
$('#addForm').submit();
});
can i use a simple href link for it?
something like
<a href="javascript:$('#addForm').submit();">link</a>
i try
<a href="javascript:document.addForm.submit();">link</a>
bot it dind't work (it by pa...
I have something like this:
//html
<div class="panel">
<div class="tools">
<a href="#action1">Action 1</a>
<a href="#action1">Action 1</a>
<a href="#action1">Action 1</a>
</div>
<div class="list">
<table>...</table>
</div>
</div>
//JavaScript (jQuery)
var lookup = $('.panel'),
butto...
OKay, TWO questions here:
Is there anything like GhostDoc for JS?
Are there any good help file generators that can use both C# AND JS source files to generate documentation? It looks like SandCastle doesn't support a web site as opposed to a web project with .proj files. And, as far as I can tell, Natural Docs doesn't support the Visua...
Hello,
I've implemented jqGrid with treeGrid enabled. On Firefox, the width off the header row (with the titles of the columns) is different from the width off the data rows.
I've attached the init code for the jqGrid and a link with the screenshot image off the problem (because I'm new to the site, it appears I can't upload the image)
...
I was reading Object Oriented Javascript and found the concept of closures. I didn't quite understand why and when it is used. Do other languages like Java also have closures? I basically want to understand how knowing the concept of closures can help me improve my coding.
...
I have created this "shell" in jquery:
Code: link text
Demo: link text
I need that every 100 chars, the prompt go in a new line below.
How can I do this ?
...
I've scoured the 'Net for a solution, but I can't seem to find one. Here is my current implementation:
<div id="NavSlider">
<div id="NavSliderMenu">
<div id="tabs" class="ui-tabs ui-widget ui-widget-content ui-corner-all">
<ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-hea...
Hi folks,
I just modified an older code and now nothing seems to be working. Could you please guide where am I going wrong.
Some of the things that aren't working are:
Earlier, focus would always stay on the only input field present on the screen. (Now it doesnt), also the if else conditions in the code arent working. On keyup functio...
Is there a way ( with languages like css, html or javascript ) to custom the text prompt in input tags ?
For text prompt I mean that vertical flashing line in the input tags.
...
I need a expanding div where it initializes showing only the top 30x960 of a 300x960 image along with an 'expand' button in the upper left. Clicking on the expand button will 'slide' the div down to reveal the full image of 300x960. Clicking anywhere else, whether it's expanded or contracted, will take the user to an advertisers websit...
This was hinted at in another post, but I need some assistance with displaying a list like this in IE7
1.
a.
b.
1.0
2.0
2.1
2.
I think I am limited to JavaScript because of IE7's lack of CSS :before support. For example, this does not work
OL { counter-reset: item }
LI { display: block }
LI:be...