Im trying to redirect to another page when user hits return.But its not working:
$(function() {
$("#ctl00_ContentPlaceHolder1_txtPopCEP").keypress(function(e) {
var tecla = (e.which) ? e.which : e.keycode;
if (tecla == 13) {
e.preventDefault();
window.location.href = "http://www.chinainbox.co...
I'm looking for a math JavaScript API to show formulas on a web site and allow users to input formulas too (for instance, using a <textarea/>).
The API should be able to parse text strings, such as 3x^2+2 or sqrt(x/(x+5)) building "automagically" fractional layouts, integral symbols and so on.
Thanks.
...
hello.
how to get the url inserted into a Ext.form.TextField in a variable value??.
if I create a variable x in Javascript, but I need to add a url as the value that a user in a Ext.form.TextField, but the variable and Ext.form.TextField are in different script on the same page.
thanks for your help and attention
...
In my current setup, for certain page requests I save the URL to file. Later in the day, I evaluate sales data, strip the query string from the some of the saved URLs and attach it to a new page request. Then I submit that request to to mark sale conversions.
When the requests first come in, Google Analytics registers utm keyword and s...
I am trying to create a "copy-paste javascript" (it will work when user paste this javascript on the url bar and press the return key) for http://www.vtunnel.com/. My script will automatically create a form to the current page and value of the "textbox" will automatically filled up with the current url, and submit the form. I am trying t...
I`ve to make some examples for javascript, they are not really usable. This one is interesting - it works on Chrome (and other using webkit), Safari. So can someone sujest me any reason why it is not working?!?! One possible explanation is that the other browsers does not read the meta tags after the page is loaded, or does not read new ...
How should you place one validator on a masterpage that wont allow postback of any content pages until all changed control data on that page has been either saved or canceled.
The specifics of my current situation and the way its currently being done on my project are listed below
This is an IE web application. The application is curre...
I need a renderer/parser in Javascript or Java for MediaWiki syntax which supports mathematical symbols and formulas.
...
This works in FF, but not in IE 7 and 8. Is there anyway to make it work in IE?
setInterval(function() {
$("#content").load(location.href+" #content>*","");
}, 5000);
(this code is from http://blog.mediasoft.be/partial-page-refresh-with-ajax-and-jquery/)
...
Hello I am using the jQuery plugin fancybox to display bing maps when somebody enters an address into a textbox and hits the submit button beside it. And a fancybox is loaded and a map for that address is displayed. This is working well with my application, but the problem is, it is only working well on one page and on the other one, whe...
I have a piece of code that is working fine in IE, but it doesn’t run in Firefox. I think the problem is that I have not been able to implement $('document').ready(function). The structure of my json is like [{"options":"smart_exp"},{"options":"user_intf"},{"options":"blahblah"}].
I will be very thankful if someone can see my code & help...
I have a json string like this:
json = "{'run': 'function() { console.log('running...'); }'}"
How do I run that function inside of the json string?
...
Hello
I'm adding some ajax features to a site and I have very strange problem.
On webkit browsers the ajax request aren't working.
I have no idea where is the problem.
I noticed that if I leave only one ajax request the Safari(windows) is doing it right, but that its not what is happening to the Safari(Mac) and Chrome(windows).
The javas...
I am trying to take text that is in an array (one word per value) and insert it into html. All the code is here: http://jsfiddle.net/chromedude/r6wVq/3/.
Update:
My question is what am I doing wrong? It does not do anything which is weird.
Just for everybody who was wondering what this code is supposed to help me do is memorize long pa...
I've read several of the questions on this but am still a little confused.
For example: OK, I can't post examples because of hyperlink limitations
Here is my exact situation.
I have a site at mydomain.com
One of the pages has an iframe to another page at sub.mydomain.com
I am trying to prepare an onload script that if the page is not ...
Hi All,
I have an extjs grid and one of the column renderer function has a for loop which goes through an array of numbers and compares them with the value for every cell for the column in consideration. so I was thinking since the renderer already loops for each row, and now i have for loop runner for each row.
The question is should...
Hi guys, a couple of questions- ive never really used JS listeners other than onclick and on key events, so i wondered if someone could help me with what i need to reload the page every X seconds?
Secondly, the page contains bare minimum, literally just one input box. Do i still need to include the html head and body?
...
So I tested two ways of declaring a json string:
1:
json = "{'name': 'ajsie'}";
obj = JSON.parse(json); // SyntaxError: Unexpected token ILLEGAL
2:
json = '{"name": "ajsie"}';
obj = JSON.parse(json); // Worked!
What is the problem with the first one?
...
I am using CakePHP as my framework.
On page load, I want to force the cursor to a specific form field where name="data[Project][title]"
I'm trying to use javascript:
This works fine if I change the name to something without brackets, but fails to work with this form name. I have to use this form field name because of how CakePHP pro...
var a
var a = "ACdA(a = %b, ccc= 2r2)";
var b
var b = "\ewfsd\ss.jpg"
Expected outputs:
var c = "ACdA(a = %b, ccc= 2r2, b_holder = \ewfsd\ss.jpg)"
It adds the string b to the end of string a, that's it! But be careful of the ")"
"b_holder " is hard coded string, it's absolutly same in all cases, won't be changed.
Thanks ever...