Running Live Code On Another Page?
Jun 11, 2011
I am developing an application and need to be able to use either JavaScript or PHP to request a page, add code to the end of it, and thenopen it for the user.What I want:
Code:
// JavaScript
/* Get page */
[code]....
View 2 Replies
ADVERTISEMENT
Oct 14, 2010
The first time I enter the command n it should run the first if statement, when I enter n it should then run the second one as its in zone two. However this is just not happening... What am I doing wrong. Its simply running the second one and skipping the first.
// gameFunctions.js
// Javascript file for Game.html
// September 29th 2010 Edition
[code]...
View 4 Replies
View Related
Mar 5, 2010
This code is supposed to find all table rows with a class of "selected", remove that class, then find all checked inputs that are descendants of a tr and give its tr a class of selected. The problem is, that even radio boxes that are not checked are being returned by $(' tr input:checked', '#deviceSelection') and everything is getting a class of selected. Anyone know whats wrong? I'm using jQuery 1.4.1
[Code]..
View 2 Replies
View Related
Apr 12, 2010
i wish the jquery community are looking here right now.
i have this existing code, which looks like this
Code:
$('selector').mousedown(function() {
do something here
}).draggable({
[Code]....
from there, with my limited experience, i failed to maintain the chaining. where do i chain the draggable (and the rest of the lot) event?
View 8 Replies
View Related
Nov 4, 2009
i know how to do the link thing that if u click it it closes the window. but im wondering if theres a way to automatically close a window after the php code is done running. cause i have an inbox and theres a link to delete the message if you click on it it will open up a new windows and run the php script to delete the message then it will say message deleted. im wondering how instead if just saying msg deleted it can close itself(the window) as well? does anyone know how? can i do it with pure php or do i need javascript too? i figured javascript.
View 9 Replies
View Related
May 29, 2006
Say I have the script doing the following:
myFirstFunction();
mySecondFunction();
myThirdFunction();
What happens with Javascript is that, any commands executed in myFirstFunction and mySecondFunction are not applied, displayed, or apparent until myThirdFunction has finished executing. How can I get code to execute asynchronously without relying on subsequent code executing?
View 2 Replies
View Related
Jul 6, 2011
How can store this code in a file js and call div#id? I dont want call this code with input#id. I want call this code with div#id.
Code JavaScript:
<script type="text/javascript">
var int=self.setInterval("clock()",1000);
function clock()
{
var d=new Date();
[Code]...
View 3 Replies
View Related
May 12, 2010
I have an issue on the following page: [url]
If you look on the right panel, at the heading "What our clients / journalists say", you will notice that it fades into another set of text. However when the page first loads because it takes a few seconds loading in the twitter feed, you will see a big lump of text running down the page.
Only when the Twitter feed has loaded does the lump of text disappear. Can i overcome this somehow?
View 2 Replies
View Related
Oct 13, 2005
Heres the problem: I am running two javascripts on the same page and they are interfering with eachother b/c of the <body= onload handler... what do i need to do these so both will run without interference?? Heres how the page looks from step 1.
<html>
<head>
<script type='text/javascript'>
window. () {
for(var i=0; imgEle=document.getElementsByTagName('img')[i];i++)
if (imgEle.height > 500){ imgEle.width = Math.round(((500)/imgEle.height)*imgEle.width); imgEle.height = (500); }
}
</script>
</head>
<body
</body>
</html>
View 1 Replies
View Related
Dec 20, 2005
So i want one set of tabs and then a bit further down another set of tabs, both containing different content.
How do I get the same script to work twice on the same page, when it comes to javascript I am about as good as cut and paste and thats it. Code:
View 5 Replies
View Related
Aug 23, 2010
I don't really know javascript, and I am trying to add two different jquery scripts I downloaded to the same page.The Problem is whichever one I place first in order doesn't work on the web page, only the one placed beneath the other one works. So I can't get them both to work. Anyone know how I can get them to both work?
View 6 Replies
View Related
Feb 15, 2009
I have a javascript program where i want users to press a button and on the same page it opens a search engine box. but when i do this it goes wrong, it just opens the search box on a blank page. Heres an example[code]...
View 4 Replies
View Related
Dec 28, 2009
I'm having with a sortable table script.
var sortableTable = new Class({:thumbsup:
getOptions: function(){
return {[code]....
It works flawlessly on my dev page: http:[url].....But I am having issues with is on my live page: http:[url].....My first thought is that it could be a labeling issue (ie: I forgot to remove "/dev" when moving the HTML over to live) but after reviewing for an hour, I don't believe this is the issue.
View 4 Replies
View Related
Feb 17, 2010
Is there a trick (with javascript or something) that can change a hidden value on a page directly from the browser without using "Firebug" software? for example: <input type="hidden" name="something" value="something_else"> I need to change "something_else" to "something_else_2"
View 2 Replies
View Related
Jan 15, 2010
I am new to jQuery. My background is C++ and C#. Once I have the html using selectors and filters is not hard to understand. My problem is understanding how to capture a live html page in jQuery and assign the page to an object which I can then use to extract information using basic selector and filter functions.
View 1 Replies
View Related
Oct 14, 2010
I got this code from w3schools and I want to alter it for my needs. However I can not get the basic example to work. I have repeatedly cross checked it and can't see any error. I wonder if anyone can spot what I am doing wrong. code...
View 2 Replies
View Related
Mar 22, 2010
i have a table, with records pulled from a mysql database with users who can earn points. is there anyway i could have the points update live, insted of having to refresh the page?
View 1 Replies
View Related
Jan 17, 2011
I have a site that runs a javascript slideshow automatically when a user visits it. It is designed in such a way that I cannot pre-load individual images for aesthetic reasons. (Also the whole concept makes my brain hurt.) I therefore need 1 of 2 things:
1. A preloader that doesn't show the page or start the slideshow until all the images are loaded.
or
2. I could start with the slideshow paused, and when the page is fully loaded, the play command (currently attached to a 'play' button) is 'sent'.
(I'm not techy, so this is the best I can do as explanation.) The latter would probably be more elegant, especially if ultimately I could hide the controls for the slideshow with a loading bar until all the html is loaded, and then show them when the slideshow starts.
View 8 Replies
View Related
Jun 21, 2009
I am having some issues running some ads coming from a database not showing up on my page it doesnt show anything at all im not sure what i have done wrong?i cud have it statically written in but it would be easier if i did it that way of getting the urls stored in a database.this is my php code along with javascript code inside my php code.
PHP Code:
include("dbconnect.php");
$rQ="SELECT * FROM banner";
[code]...
View 2 Replies
View Related
Jul 19, 2009
I want to do a similar effect on my site as this site has doneWith the times of the cities running along the top of my page. Their whole site is built in tables and has an insane amount of javascript in the head so I am guessing the site is quite out of date.Is there a easier/simpler/cleaner way to do this? Maybe using jQuery?
View 2 Replies
View Related
Jan 15, 2010
My background is C++ and C#. Using basic selectors and filters in jQuery is not a problem for me. My problem is finding the right jQuery code to capture a live html page and assign an object which contains all the html text I just captured... then I can use the object to apply basic selector and filter functions to create another page.
View 6 Replies
View Related
Jan 12, 2007
Basically I have site that uses iframes to load its content. In one of the frames I have an html page that contains an image, and when you mouse over the image it is supposed to fade up a little description box. Naturally when you move the mouse away, the box disappears. I have a javascript function that fades the image up and down, and it's activated via an onmouseover event that is attached to a div that contains no content, but lays over the image to define the triggering area.
I use Dreamweaver to preview my pages while they are stored on my computer, and everything works beautifully. However, once I upload the page to my site, that functionality disappears completely. Code:
View 3 Replies
View Related
Aug 26, 2007
Many ajax and javascript functions change the innerHTML of elements in the source, writing and rewriting things in the source
You can run any javascript function or action you want that would change the source, but when you view it, it will always show the original source before a JS function changed it
Is there a way to view the changed source after each time a JS functoin changes it??
for example:
<span id="whatever">This is the original source code</span>
then you may run this piece of JS:
whatever.innerHTML= 'Changed source code!'
but when you right click and press 'view source"
you will always get this:
<span id="whatever">This is the original source code</span>
I want to get the changed source code, maybe its possible to write the changed source code to another file, or use some kind of HTTP prog to read the changes on an html page?
View 2 Replies
View Related
Feb 24, 2010
I am relatively new to Java and am going to be taking a class on it next fall. For now though, I am trying to code for a client I am currently working with and am hopelessly lost. The client I am working with has an ecommerce site with Network Solutions which uses aspx. It allows you to code html and link to css, java (pretty much anything except php). The problem I am having is that they currently have their product descriptions coded in div tags:
<div id='alternatebg'>
<div id='detailsgreybox'><div id='alternatename'><p>Alternate Name</p></div></div>
<div id='pd2'><p>Not Available</p></div>
</div>
<div id='usebg'>
<div id='detailsgreybox'><div id='use'><p>Use</p></div></div>
[Code]....
What they want to happen is for the sections that have 'Not Available' as the answer to not show up on the live page. I have tried to use <ns:if condition="..."> but do not know how to call for it to see if the div says 'Not Available'.
View 16 Replies
View Related
Jun 6, 2010
could someone please point me in the right direction for creating an AJAX page that displays "live" data from a mysql database? I need the page to update its self every time data changes in a mysql table.
View 1 Replies
View Related
Apr 21, 2010
How would I go about running a program onclick or onblur and displaying the result on same page without it changing?
View 13 Replies
View Related