Hello Experts,
Can someone please let me know if there is any syntax to refresh a page in Jquery?
Thanks for your help.
Regards
Sam
I am writing a script that need to change the onclick attribute of DIVs. I can't simply use:
var myvar='aa';
my_div.onclick="myfunction(myvar)";
not sure why, but it doesn't work. I a...
How can I open the href location in a new window and still keep onclick=location.href as shown in the code below? I don't want to use the html <a> construct such as <a href="contact.asp">Cont...
Just need help wtih my check here.
Here is the checkbox in my ASP:
Response.Write("<br>Indef<input type=""checkbox"" class=""checkboxwhite"" name=""indef"" value=""ON""></td>" & vbCrLf)
...
I'd like to use a function to get all elements by a css class name and change their class, or attributes. In the one function or the way I've envisaged it if possible.
similar to document.g...
Dear experts,
This is the HMTL code
<select name="id[7]">
<option value="21">False (+S$200.00)</option>
<option value="20">True (+S$123.00)</option>
</select>
If user select first op...
I have a form on a web page. When my "Submit" button is pressed, a function is called that validates my form. If a particular radio button is selected, I want to exit the function and forget...
Hello guys:
I need a function to CENTER a popup window according the BROWSER SIZE AND POSITION AND STAYS ON TOP. Also, the function must work without passing the width and height parameters...
I'm trying to find work out if a screen is maximised or not and then if it's not, move and resize the window. Here's what I have so far:
<script>
var scr_w = screen.availWidth;
var scr...
Hello,
I need some help re-writing a script for our knowledge base, I want the user to be able to press enter via the keyboard instead of the Query button to quickly navigate to the desired...
Dear all experts!
This is a Firefox related question.
Can someone show me how to dynamically add a keydown event to the iframe in the code below, so that the updateTa() function is execu...
Hi,
Just a quick question I need to find if a string contains a particular string of characters and set the value of a form field based on the result so something like:
if instr(myvariab...
Hi
I am getting an error in IE 7 only and it doesnt move. It works in Firefox.
It's complaining about this line:
var myTicker = new Ticker('newsticker',{toggleButton:'toggle'});
Ca...
I have a drop down box ...
When the enduser selects something from this box, I need the focus to go to two radio buttons and require them to choose one of them...
and I need the radio butt...
I am trying to use window.href to a page and grab two text box values to string at the end of the href:
For example:
textbox one, I type in: shallow
texbox two I type in: Hal
Button:...
Hi All,
I have this code with me (I got it from some website, do not remember now) which expand / collapse table rows. I want to add + / - image before it and switch it depending on if it is ...
Hello All,
I have this situation.
1. I have one Text box (say first) and add button.
2. If i click add, one text box should be added + one delete button.
3. if i click add again, secon...
I have a need to have text go between a textarea and a div and a database
To get from the database to the screen I replace \r\n with <br> and it is displayed in the div
From javascript I...
Anyone knows how to round up/truncate a float value to 2 decimal points
here is part of my javascript code:
totalAmount=totalAmount+parseFloat(document.FRM.<%="lineAmount"+line+"UI"%>.va...
I'm trying to, upon checking off a checkbox, enable/disable two radio buttons of the same group.
this is the onclick function thats called when a user checks off the checkbox:
function ...
Hi,
How do you add a function to document.body.onload
e.g. it is currently onload="function1();"
it needs to become onload="function1(); function2();"
function2(); could be any fun...
I have the following JS code which adds a new row to an existing HTML table:
function addRows(cid)
{
var tbody = document.getElementById(cid).getElementsByTagName("TBODY")[0];
var row ...
Hi,
I need a function written whereby the initial value of a textbox will clear when the user clicks in it and then rest to that initial value if the field leaves focus AND they haven't cha...
Hi,
I have a select box where a user can pick something. One of the selections is "Revert" which I want to throw up an alert asking the user if he really wants to do this. I know with <in...
I want to replace some value by some other value,
like
var main = "some vlaue here";
main = main.replace("abc", "xyz");
In the string main, i want to replace all occurrences of "abc" w...