hi im using ajax to extract all the pages into the main page but am not being able to control the refresh , if somebody refreshes the page returns back to the main page can anybody give me any solutions , i would really appreciate the help...
...
Hi, can anybody give the sample code to read and write the into file using JavaScript?
...
im new to this if somebody could help me ....
...
I just want to know how to prevent a 'ENTER' key pressed to submit a form in a web based application. I need a detailed answer.
...
My JS code includes some images that are empty at the beginning
(without src attribute specified at all + display:none).
When added to sites with CSS1 compatibility I see broken image icon where the image should be even though the images are supposed not to be displayed (display:none).
Any idea how I can hide the broken image icons?
...
Consider the following piece of code.
<html>
<body>
<script>
var x = 5; //globally declared
function showX()
{
alert("x="+x); //trying to display global value
var x=10; //trying to create and initialize a local x
}
</script>
<input type = "button" value="Show X" onclick="showX()">
</body>
</html>
The alert statement...
hi, i have a dropdown menu that isnt working in ie7 but works in other browsers
http://redlineautoleasing.com/beta/
its using jquery but i cant figure out how to fix it , any clues?
thanks
...
I recently tried to use an implementation of map in javascript to create a bunch of items, then apply them to an objects add method.
Firstly with a bog standard implementation of map.
var map = function (fn, a)
{
for (i = 0; i < a.length; i++)
{
a[i] = fn(a[i]);
}
}
Setup.
var translateMenu = new Menu;
var langu...
I've got a couple of tabs on my page and I'd like the switching between them to be back-button-able
My idea was to let the tab-buttons link through to #tab1 and #tab2, and then let jquery pick up the #tabX and show/hide the relevant tab.
Is this possible? How can i get access to the #whatever in the url from jquery/javascript?
Thanks
...
Hi,
how can simulate an onclick event on a DIV passing only X,Y coordinates???
If I try to make that obviously the dispatchEvent function wants the
object on which the event will be raised...but then what is the meaning
of passing in event creation the coordinates????
Thanks
...
Regardless of what height argument I use, my window keeps a steady height of about 250px. The console.log statement outputs 600 when I pass 600 to show, e.g. getIFrameWindow().show({height: 600}), so I know my height argument is being passed and received correctly, but my window doesn't render with it's correct height.
getIframeWindow ...
I am looking for a JavaScript array insert method, in the style of:
arr.insert(index, item)
Preferably in jQuery, but any JavaScript implementation will do at this point because I can't believe the trouble I'm having finding such a basic function! Thanks for your help.
...
I implemented the Yahoo Rich Text Editor (YUI Editor) in a Rails application using the YUI_Editor Plugin.
If I copy/paste text out of a PDF into a YUI-Editor-enhanced-TextArea (YEETA :)) it does not only copy the text but also the formatting of it.
How do I configure the YUI Editor to remove all formatting of text pasted into the YEETA...
We have an external .js file that we want to include in a number of different pages. The file contains code for sorting a table on the client-side, and uses the ▲ and ▼ characters in the script to indicate which column is sorted and in which direction.
The script was originally written for an ASP.Net page to offload some sorting work f...
I am appending p tags to a div as I process a json request and would liek to style it according to what is in the request.
$(document).ready(function() {
function populatePage() {
var numberOfEntries = 0;
var total = 0;
var retrieveVal = "http://www.reddit.com/" + $("#addressBox").val() + ".json";
$("...
I am using a jquery click function:
Button code:
<input type="button" id="myButtton">
Jquery code:
$(document).ready(function(){
$("#myButtton").click(function(){
alert("Mybutton");
});
This code works in Internet Explorer but does not work in Firefox.
What am I doing wrong?
...
Hi,
In my aspx page,when a user clicks on a Location "LinkButton", a new textbox should be dynamically added in the page.User can add a maximum of 10 textboxes.
Also, user can navigate to another page B from this page A.When he comes back to page A, all his textboxes should be persisted.
How do I achieve this functionality?
Thanks.
...
Hi,
I'm spending a lot of time to learn how OOP is implemented in Javascript as in ECMA 262 of 1999: now I want to know if someone think that the new JS 2.0 will arrive soon and I'am
studying uselessly because with this new version will be the OOP implemented in a classical way (Java etc.) and will be interfaces, generics and other clas...
What kinds of options do I have when a dropdown menu is faced with text that is so wide that extending the menu's width to accommodate is not feasible? i.e. It breaks the page layout, or just looks too ugly if the dropdown is adjusted to fit the long item.
Truncation?
Truncation plus full hover text?
Don't allow items that long?
Anyone...
This is driving me up the wall, I need the ratios to stop the resizing/odd padding occuring when the movie renders.
According to the Ratio Calculation help article (which is unhelpful since it follows the old, not recommended, way of replacing elements) it should show me a prompt, but it doesn't.
ratio.html
<html>
<head>
<script src=...