I am embedding a swf in a popup window using javascript's window.open function. I am currently passing in static values for the popup's height and width corresponding to the height and width of the embedded swf, like so:
window.open('http://whatever.swf', 'popup', 'width=400,height=300,resizable=1');
A user can click on a button in ...
It sounds stupid, but over the years I haven't been able to come up with a use case that would require this. A quick google search didn't reveal anything worthwhile.
From memory there was a use case mentioned by Bjarne Stroustrup but i can't find a reference to it.
So why can't you have this in C languages:
int val = 0;
if val
doSom...
Hi,
Hoping someone can assist with some string manipulation using jQuery.
Basically, within a .click(function(){ I have the following string variable:
f?p=251:1007:3642668879504810:::::
What I need to do using jQuery is basically remove the number 3642668879504810 (which changes, i.e is a random number so cannot match on this number...
Hi All,
Let's say I'm a js script living inside a html page. I need to know if I am inside a specific IFrame.
Something like
if (top.location.href === 'http://specificurl/') ...
However I need this working from any domain.
I have also tried adding a value to the window element in the iframe owner and checking on the child with th...
When a user enters my page, I have to make another AJAX call...to load a data inside a div.
That's just how my application works.
The problem is...when I view the source of this code, it does not contain the source of that AJAX. Of course, when I do wget URL ...it also does not show the AJAX HTML. Makes sense.
But what about Google? W...
If I have an event that runs multiple javascripts does the following script wait until the previous script is complete before it runs?
Example:
<a href="#" onclick="javascript:SCRIPT_1();SCRIPT_2();SCRIPT_3();">Test Me</a>
Will SCRIPT_2 not execute until SCRIPT_1 is complete doing its stuff?
Thanks.
...
I am in the process of stripping down some code I've written for a Time Frame selector function that filters search results based on a selected Time Frame (Last Month, Last Quarter & Last Year) by hiding all irrelevant results based on when they were created. The function is called by a GET variable submitted on form submit ?time_frame_q...
In my feeble attempt to learn JavaScript, I bought a book which teaches you how to do things in JavaScript, but forgets to mention WHY.
Coming from PHP I am familiar with the typical function syntax:
function name() {return;}
which from what I understand works the same in JS.
Then I decide I want to attempt to use the YUI 3 framewor...
Anyone with CKEDitor experience know if it is possible to use JavaScript to call with Full Screen function/action outside of the CKEDITOR?
thanks
...
Very Brief Background:
I am using Jquery Autocomplete to lookup the the value of an item from a database. That value is then somehow given to a hidden field within the same form and then inserted to the database.
What complicates this slightly is that I am working through Jquery Ui Tabs, which I haven't had a lot of fun with in the pas...
In a script like this, would the load functions be called in asynchronously or one after another?
<script language="javascript" type="text/javascript">
$(document).ready(function () {
$("#TheLink").click(){
$("#PlaceToUpdate1").load("/Controller/Method/View1");
$("#PlaceToUpdat2"...
I am trying to get some experience with chrome extensions. I have a question though. Let's say I am writing an extension that everytime you see the word (wow) in the url, i will alert the user with a red page that they have to click on accept to pass, or an alert box that they have to get through in order to see the page, how would i:
1...
<a href='http://www.domain.com' id='replace' style='text-decoration:none;color:black;font-size:10px;'>This is text link</a>
<script language="javascript">
var newURL = "mydomain.com/?refid=4877";
onload=function() {
var dt = document.getElementById("replace");
document.body.innerHTML = dt.getAttributeNode("href").value.replace(/...
If I were to write a commercial (=sold for money) app for Mac OS X (not iPhone) would it be wise to do so in Javascript with JSCocoa? I know Javascript by heart but next to nothing about Objective-C and it scares me. Any thoughts?
OTOH, I can always dive into Objective-C. But still, this looks like a nice shortcut. Or is it too good to ...
Hi ,
I need to check whether document element value is changed after perticular operation using java script
My requirment is
There is document elements contains default values after changing perticular date element there is some ajax opertion document elements values changes.
This return all the doucument element then after i going to...
I have GUI for data acceptance.
I need to pass all the parameters of the form on click of a submit button to a function declared in C#.
Please help.
...
I have a PHP based form. For many of our inputs, the user clicks an html which created a custom popup window with a "mini-form". When the user clicks on the submit button, the values from the "mini-form" are sent to the main form to hidden inputs using JavaScript. This can become complicated to do, especially with validation and other...
I want to make the application like below.
First there is a page with four radio buttons. The user clicks on any of the radio buttons but doesn't save and he goes to another page. Then if he comes back to same page with the radio buttons it shows the selected radio button before he goes to another page.
How can I do it by using jQuery,...
The following works correctly:
alert("start");
loadData(); // takes a while
alert("finished");
loadData() is a method that inserts large amounts of data into a table in the DOM and takes a few seconds.
This, however, does not work as expected:
document.getElementById("mydiv").style.display = "block";
loadData(); // takes a while
...
How to check the number of seconds(or ms) spent inside the particular loop in javascript.
I have a sorting algo implemented in javascript , now I am using bubble sort , I want to use quick sort.
I know in terms of time efficiency Quick sort is good. But I want to calculate the real number of sec or milli sec spent inside the innermost l...