PING - And Do Different Things Depending On The Result
May 9, 2009
Is there a way to do a PING from within Javascript and do different things depending on the result, kinda like
Look at [url]
Hover the mouse pointer over the labels for doofus and dingbat to see how I want it to look.
View 2 Replies
ADVERTISEMENT
Apr 8, 2006
I was looking for any method to run a ping command to a static ip using javascript. Is that possible? Could I use some bash script inside of javascript for that?
View 2 Replies
View Related
Jul 23, 2005
I'm wondering if its possible to write a javascript, that can ping a ip and return the average round trip time (like ping in dos/linux)?
View 14 Replies
View Related
May 27, 2009
I've made a code that finds the factors of an inputted number. Here's the script code...
However, when I factor it, It will go to a blank unformatted page to list the factors. How can I list the factors on the webpage itself like a div? I tried using a <div> and innerHTML but it only lists one factor.
View 3 Replies
View Related
Dec 31, 2011
i have a problem with fading things in and out using jquery. Please check it out.THe problem is that sometimes the fading in happens before the fading out. What can be done to fix it?
[Code]...
View 12 Replies
View Related
Nov 9, 2009
i have a box:
<img id="imgSearch" src="" alt="Websites" />
<input type="button" value="Toggle Search" id="btnSearch" />
^being the button to toggle between websites.
basically i'd like this button to toggle between different websites when clicked.
secondly:changing span tag colors
html code:
Traffic Light: <span id="trafficLight"></span>
<input type="button" value="Prevent Accident" id="btnTraffic" />
i'd like to change the color of this span id by pressing the button. so in this case it would change red, yellow green and last:
changing the font in a bold tag bold by pressing a button
html code: (note, the font weight in normal in css for bold)
<b>i want this bold when you hit the button!</b>
<input type="button" value="Set Bold" id="btnBold" />
View 1 Replies
View Related
Jun 13, 2010
Can a checkbox do 2 different things after it is clicked? Right now I am using this...
<input type="checkbox" onclick="processCheckbox(this);">
<input type="checkbox" onclick="activLink(this.checked)">
I don't want to have 2 checkboxes on my page, just 1 and get the same result.
View 2 Replies
View Related
Jun 6, 2007
Are there pointers in Javascript available, like for example in Turbo Pascal 7? :)
So i could use
function TestFunc(PointerToFunctionA, FunctionAItself) {
FunctionAItself('Hallo'));
//And how to use the Pointer then?
PointerToFunction('Hallo')...???
}
function PassedFunction(TextToShow) { alert(TextToShow); }
TestFunc(^PassedFunction,PassedFunction);
View 2 Replies
View Related
Jul 28, 2005
I'm trying to make selected text appear / disappear depending on what the user clicks on. It works perfectly (as far as i can tell) in firefox, but in IE i get "Could not get the display property. Invalid argument". the strange thing is, it will make things disappear, but not show. I'm trying to change the display from 'none' to 'table-row' because that's the only thing that would display properly in firefox. here is the applicable [code]...
View 6 Replies
View Related
Nov 12, 2009
i have found an engine that i would like to edit, in the following javascript code, it will contain code on moving a player to the left, what i want is for every 32px it moves the player left, i want it to also to scroll the map at the same time (it's all contained in a div called "global_map") -
function player_move_left(user_id, bloc_id, charaset, prefix)
{
var player_id = prefix + user_id;[code]....
how to scroll 2 things at the same time (the player div and the global_map div)
View 2 Replies
View Related
Oct 24, 2009
I'm developing a website utilizing Jquery Drop Shadow and thickbox and other things. I just implemented the thickbox and thought that maybe the slow response was my system (I've had photoshop, 12+ browser windows up, etc). I realize that may not be the case and I suspect jquery's drop shadow is a hog. I don't want to go through the entire code and implement a different shadow method at this point. Instead I'm wondering if anyone can verify this issue
[URL]... Click on the "Film Reel" and it may be especially slow to load. If you suspect it is my use of the Jquery Drop Shadow, can you recommend ways I could optimize it? One idea I have is to toggle it off and on when thickbox is opened and closed. However I don't know how to do that yet.
View 4 Replies
View Related
Apr 15, 2011
I wanted to validate the credit card numbers (I know that's not necessarily safe but I'm living recklessly and we have SSL on this )...
I found some javascript methods but I already have an "onclick" event on my submit button (to make sure people agree to the cancellation policy)....
Is there a way to multitask and do all those things with one script?
View 14 Replies
View Related
May 25, 2009
How can I make something in jQuery slideDown without pushing things under it down? To take it out of the flow so it just overlays a slidedown like a typical dropdown menu? Can slideDown be used for that?
View 2 Replies
View Related
Apr 10, 2009
Is there a reason why this wouldn't work??
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>[code]....
Gives me the same null error, sometimes I get a "nav" is not defined, but again this is in both IE and FF.
View 2 Replies
View Related
Dec 10, 2011
today I am creating a form where a user can enter prices for things. I want to use javascript to display a total so far and it should update automatically as the user
nters/changes new prices.I have a form which looks something like this:
<form method="post" action="mailer.php" name="contact">
Price 1 <input type="text" name="stampprice[]" size="5" onchange="calculate_total()">
Price 2 <input type="text" name="stampprice[]" size="5" onchange="calculate_total()">
[code]....
View 1 Replies
View Related
Aug 25, 2006
I am trying to make a script that outputs a block of code depending how recently a certain feed was updated. for example, if it was updated today, the output would hopefully be <div class="andrewupdated andrewtoday"></div>But currently nothing is being output. Code:
View 1 Replies
View Related
Dec 23, 2010
I have some contents on my page that are displayed on click or hover.Therefore, initially they are hidden using the hide() method.
They work fine as intended.
But if it is a slow computer, you can see them on the screen for a second or two before they disappear. Or if the user refreshes the page - you get the same thing happen. How can I prevent this?
View 3 Replies
View Related
Sep 13, 2011
I have one site that has a bunch of cool easy javascript tricks that allow the user to change the page designs and other things. I had put a lot of time, effort, and $$$ into this site, and it was where I make partial income to provide for my family. Lately, I have noticed that some browsers (Chrome) will not allow the user to paste my javascript codes into their address bar.
Example: if user pastes "javascript: alert(2+2);" into their address bar in Chrome (and some IE I have heard from visitors) it will do a google search on alert(2+2) and will completely strip the "javascript" part out.
View 8 Replies
View Related
Jan 18, 2009
I'm using the original lightbox script, took the code exactly as it was given but it doesn't look like the demo: [URL] What do I need to do to put a background behind things like the caption and to give it a bigger boarder? Example here: [URL]
View 1 Replies
View Related
Feb 22, 2011
I have the cycle plugin running, works fine on all but IE7 (not catering to IE6). The pager elements on the right do not appear in IE7. I have tried adjusting the z-index, etc., but can't figure it out.
Also, the caption text transitions in with bolded elements properly appearing, and then they flip to regular text (the whole line of text transitions a bit strangely).
View 4 Replies
View Related
Feb 7, 2011
We run a click and sales tracking solution for our advertisers and as such we are having a few issues with browser compatability for certian sites that are ont eh Magento platform. Essentially we are just trying to create an image call in javascript that uses a few pre-populated variables from the checkout process.
So teh issue we are having doesn't seem to be broser specific. We are trying to simplify the javascript call to ensure we have the highest possible chance of compatiablity. Obviously now with so many differnt browsers and also mobile devide connectivity this is making things even harder. We know that our javascript calls are failing as we've been monitoring our IIS logs and can see the image calls are being made with blank variables. There are 3 different elements to our checkout calls that maybe you guys have experience of with possible issues or fixes:
1. unescape function
2. onload event function for images
3. creating images dynamically
these are very basic elements of the javascript core but aout 5-10% of our calls are failing with blank variables being passed into the image call. So the questions is what elements of our call will be the possibel sources of failure?
[Code]....
View 1 Replies
View Related
Jun 9, 2009
1)i need to create a form with few fields like phoneno,website,address etc and one text area.
2) i copy n paste the details in the textarea n when i click d button. it should automatically populate things into the respective fields.
here s my logic wt i taught of:
1)read the first line in the textbox and load it into contact person field.
2)find the @ symbol and put it into the respective field and if there are more than 1 mail id load it into the same feild using commas.
3)if the phone no is 10 digits then load it into the mobile field else load the rest it into phone field.
4)find for words like road,street,block,stage,floor etc,if present then load it into the address field till the last comma is encountered.
5)the last digits in the address should be loaded into the pincode field.
6)the last word present in the address after the last comma and before the hyphen should be loaded into the city field.
7)find for www or http and load it into the website field,if not found leave it blank.
View 2 Replies
View Related
Nov 28, 2010
I have to come up with a user authenication page the logs the user in and also gives them access to do the right things. I have attached the code and the access file and have got started on a few things.I first need to create a login page with the fields username and password have that check the access database and then proceed it to a page to do the following depending on the user access. For The Login button to even be enabled the username and password must have a value in it. I have no idea how to do that
Add A User [No duplicate Users]
Modify A User
Delete A User
[code]....
View 4 Replies
View Related
Jun 15, 2011
Is there a way to make one regex to replace a space with " " and a tab with " "?
Currently I'm using two regex's with string.replace( ... ).replace( ... ), but that means it has to run through the string twice. Any way to do what I want in one regex?
View 4 Replies
View Related
Jul 20, 2005
I have a problem - I manage two websites, with two different style sheets
(one for each site), but they both share hte same public message boards and
I want to change the CSS used by the forumn template depending on which site
the user came from - this must be done in JScript, as the boards are hosted
offsite and we cannot edit the serverside language.
Unfortunately, its been over two years since I undertook a serious JScript
project and cannot remember alot of what to do. I was planning on this:
<script language=JavaScript>
if (document.reffer="http://www.website1.com"){
document.write('<link rel="stylesheet"
href="http://www.website1.com/css/css.css" type="text/css">
}
else if (document.reffer="http://www.website2.com"){
document.write('<link rel="stylesheet"
href="http://www.website2.com/css/css.css" type="text/css">
}
else {
document.write('<link rel="stylesheet" href="css/css.css"
type="text/css">
}
</script>
View 1 Replies
View Related
Apr 30, 2010
i want to make an animation where one value depends on the other.
Let's say i want to animate both the 'top' and 'marginTop' properties, where i want the marginTop property to use the current value of the 'top' property.
I could do something like this:
$("#foo").animate({
top : "100px",
marginTop : ($("#foo").css('top') * 2) + 'px'
});
But that doesn't work, i guess because the css('top') method only gets called after the animation has finished.
Is there a trick to get the value of 'top' in the 'marginTop' property?
View 2 Replies
View Related