Hi,
while i am googling for language translation using google i found an interesting website in which the site developer used AJAX technique i guess.
In that website, it uses a google translator but the website content only changing with respect to the selected language. Means it calls the google translator externally and changing the ...
i have this jquery function that i want to pass topic parameter to, i just dont know how to pass it lol :)).
the jquery function:
function loadPage(url) //the function that loads pages via AJAX
{
url=url.replace('#page',''); //strip the #page part of the hash and leave only the page number
$('#loading').css('visibility','v...
I have the following:
<form id="my_form">
<input type="checkbox" name="a" value="a"> Check <img src="..." />
</form>
To handle the check and uncheck events I do (and this works):
$('#my_form :checkbox).click(function() {
if($(this).is(':checked')) {
//...
}
//...
});
My question is: inside of that click function, h...
Hello,
I have a script in which I have to pass 2 values to window.location.href to open a new window which accepts these two values from the URL.
onclick="showrestdetail($urlpagename)"
The function is as follows:
function showrestdetail(urlpage)
{
window.location.href=urlpage;
}
But I want two values to be passed in this ...
Hello!
I have an iframe in my page and i want to create a button that when i press it the page in the iframe scrolls down...
Can anyone help?
...
Hello,
I have a displayFormat pattern "$###,###,###;-$###,###,###;#"( it can be different too) and I want to reformat the value in the AspxTextbox after deleting the ',' on GotFocus and LostFocus events by calling the following JavaScript function :
function TextBoxFormat(ctrl, e, displayFormat, charactersToRemove) {
var value = ctrl....
I am using jQuery UI and a few other JS libs which in total make for quite a chunk of JS (even minified and combined). My idea is to not include a script tag in the page but to stub out all functions that I defined as well as the $ sign for jQuery so that my inline JS on the page can still call them but will hit the stub. The stub will t...
I have a collection_select field, and I want to make a div visible or invisible after changing it, depending on the new value.
I have the below code for the collection_select field, there is a JS function change_div_visibility which currently accepts a div name but I also want to pass in the collection_select value.
How can I also se...
I am trying to prevent fancybox window from closing when the user clicks outside of the
fancybox window. I am using fancybox Version: 1.3.1 on IE7, I have tried the following but I have yet to succeed. Any help is very much appreciated.
http://stackoverflow.com/questions/2115234/on-fancybox-1-2-6-close
http://stackoverflow.com/question...
I can't get YUI3 to work on node.
I have installed all dependencies according to this site: http://github.com/yui/nodejs-yui3.
Here is my code:
var jsdom = require("jsdom").jsdom,
window = jsdom("<html><head></head><body>hello world</body></html>").createWindow();
var puts = require("sys").puts;
var YUI = require("yui3").YUI;
v...
Hi,
I developed a website using Javascript and HTML pages
Problem :
When i am clicking on refresh button on Internet Explore, it is going to home page instead of refreshing the current page of my web page. please do the need full
Regards
Santosh
...
I have the same problem as the following stackoverflow question:
http://stackoverflow.com/questions/499949/flash-loads-twice-workaround
but the provided solution is not working for me (my script runs after the DOM ready and a delay), is there any workaround to fix the Firefox bug which is fixed in the bugzilla but still exists?
upda...
Hi,
I want to access the object in [] JSON literal as an array using FOR...IN. But iterating through FOR...IN gives the object x undefined. Please see the code below.
var myJSONObject = [
{"ircEvent": "PRIVMSG", "method": "newURI", "regex": "^http://.*"},
{"ircEvent": "PRIVMSG", "method": "deleteURI", "regex": "^delete.*"},
...
Making desktop gadget and want to change the css file on docked and undocked.
In fact, I am changing it in ondock and undock function, but it's not reflecting.
...
Is there a way to change a value of a hidden field in the markup (with jquery or js) so I could use that new value once I'm out of the script (i.e. in a different script that would be triggered later)?
Lets say :
<form>
...
<input type="hidden" name="prev_address" id="prev_address" value="no">
<input type="hidden" name="prev_job" ...
Possible Duplicate:
Alt attribute encoding with JavaScript
I can't seem to assign special characters using javascript in alt tags and have them render in any browser.
Without javascript, special characters in alt tags render fine (Pepsi):
<img id="pic" src="path/to/image.jpg" alt="Pepsi™" />
However, when assigning th...
This is a high-level question about web frameworks, that as a desktop app developer, I don't have much knowledge of.
I am planning to build a web application which visualizes some data stored in a database. I plan on using Rails for user query. For visualization, the Raphael JS library looks good. Would it be a considerable task trying...
how to access JSON array elements for the following JSON Code? further how do i calculate the size of the returned object array?
[
{
lastInvAmt: 0
bwHrs: 0
nbwHrs: 0
unbilledAmt: 0
unbilledHrs: 0
dbID: 0`
},{
lastInvAmt: 0
bwHrs: 0
nbwHrs: 0
unbilledAmt: 0
unbilledHrs: 0
dbID: 0`
}]
...
Not sure why this is not working...
I have a collection_set as below
<%= collection_select(:entry, :entry_status_id, EntStatus.find_all_draft_or_edit, :status, :en_desc, {}, { :onchange => "change_editor_select_visibility('entry_set_editor', this.value)" }) %>
When I load the form, I want to set visibility on another div based on the...
I'm testing IE7, IE8, Safari, Chrome and Firefox.
It would be pretty less boring if you guys told me that I don't need to test for XP, Vista and 7, since there's no difference.
Thanks
...