I am using the following code -
jQuery(".form_" + form_count).html("<div id='message'></div>")
jQuery('#message').html("<center><h2><br><br>Thank You Your form has been submitted.</h2></center>")
window.setTimeout(function() {
history.go(-1);
}, 1950);
Now what i want is that after the previous page has been loaded using hist...
I am currently using edit_area_full.js on a few web pages to format python code examples. I have a few cases where I want to pretty format json data, but edit_area does not support json. What is the best drop in replacement for edit_area that can format json data in a text box in a webpage?
Here is how I am formatting python code.
<p>...
I'm opening a modal window with javascript like this:
window.showModalDialog('<%=Url.Action("Index","Bank") %>', "Ratting",
'width=550,height=170,left=150,top=200,toolbar=1,status=1,')
and it works properly in all browsers except for chrome (it's not modal)
I want to know whether is this a bug or a feature? or maybe I'm do...
Hi
actually i have problem of fetching id of another page div.
i have main index page in which in anchor tag i passed one function. this fn contain event and another page.
but now in js file when i tried to call that page id using
document.getElementById
it was giving null value.
please help.
thanks
...
I am preloading images via JS like so:
Image1= new Image(234,273)
Image1.src = "001.png"
The images successfully get called on page load (confirmed from the Firebug Net panel).
After that, there's a button that triggers a function which replaces an image like so:
document.getElementById("myImage").src = "001.png";
The problem is ...
I've read plenty of reasons not to use for-in in Javascript, such as for iterating through arrays.
http://stackoverflow.com/questions/500504/javascript-for-in-with-arrays
So in what use cases is it considered ideal to use for-in in JS?
...
Hello,
I read that for many reasons its better you use full link paths between pages in my site.
The question is how can i debug and work on my local testing environment when all of the links are with full path?
(Manually replacing them is not an option...)
Thanks
...
Hi, do you know a good way to check if a variable is the window object in javascript?
I tried with:
var variable=window;
Object.prototype.toString.call(variable);
In Firefox it returns "[object Window]" but in IE "[object Object]" so that's not the right way. Do you know an accurate way to check it?
...
can we access the hidden variables values in a controller's ActionResult if the hidden variable's value is set in javascript?
...
New to MVC, trying to pass a variable from Flash using FSCommand (works well with other functions) from one view to another. The Javascript I am using:
function p1_DoFSCommand(command, args) {
var p1Obj = InternetExplorer ? p1 : document.p1;
if (command == "nameClip") {
var FlashName = [args];
...
Im trying to make an extension to Safari that authenticates with http://myphotodiary.com's API. And it works well, for all passwords that dont include special characters like:
å,ä,ö and space
I have the following code working now:
var xmlHttp = new XMLHttpRequest();
var url = "https://api.myphotodiary.com/user_status.json?api_ke...
I have a legacy JSF application. Now that we want to add i18n support to the application. Some portion of the textual content comes from javascript code and is added dynamically. How do we best internationalize this? The approach that i have in mind is to get the entire resource bundle as a json object from a server side script and then ...
Hi guys - my page has a div on the top of 100px height and an iframe beneath it. I want the iframe to fill teh rest of the page viewport i.e that the iframe's height should adjust as the browser window adjusts so we don't see two scroll bars - I just want that the scrollbar should be visible in the iframe and not in the browsers own vie...
I have some web pages. User can enter anything he wants into the forms which are in my web pages.
I want the special characters(which are visible and non visible on keyboard) to save in Database and retrieve them as it is.
Any suggestions ?
...
Is it possible to find out which javascript files are NOT used on a web page without having to add console logs or debug or removing them to see if things break?
I'm looking for a tool, or a command line script or firefox plugin etc.
For example, lets say I have these included in the header:
<script type="text/javascript" src="js/jque...
Hi all,
I tried to run a line of code as the following:
document.getElementById('frame0').contentDocument.location.reload(true); to force iframe to refresh or reload but I got the error like "permission denied" in firefox. Does anyone know why? and help to offer a solution? Thanks!
...
Hi,
Just a general Question.
Is it possible to copy text in Mobile Safari to the Clip Board with some use of iWebkit JS?
(Without the users holding down text, and selecting Copy)
Similar to the Copy to Clipboard function that IE has on the PC.
Thanks.
Edit:
This applies to just Specific Text, not the entire document. example: a Va...
I'm fairly new to gmaps and Im using v2 because of the search function that I didnt find in v3.
I've got an array of data that I want to loop through and put the markers on the map =)
It seems really easy but I cant get it to work with v2 at all...
Here is my what my array format and code looks like:
function createMarkers(myLatLng,h...
Hi,
I'm creating an SVG rectangle using the Raphael JavaScript library, and assigning it a fill using the following line of code:
this.myBox.attr({fill: 'white'});
This works fine. However, now I want to tie this to a linear gradient. I have borrowed some gradient code to test it out, using the code below:
<defs>
<linearGradient id=...
My code is not able to display the tinymce Icons ...below is my code
tinymceSettings: {
theme : "advanced",
tinymcePlugins: "style,paste,directionality,advimage,advlink",
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,|,fontselect,fontsizeselect,|,bullist,n...