JQuery :: Running A Phpfile On Server?

Jun 21, 2011

Why doesn't this work?

HTML:
<form id="productSort">
<button onClick="menu()">Open Menu</button>

[code]....

View 2 Replies


ADVERTISEMENT

Jquery :: Not Running Properly On Apache Server

Aug 3, 2011

This is a strange problem because there's no reason it should be happening.
I'm running xampp 1.7.4 locally and jquery-1.6-dev. I'm working through the "jQuery Novice to Ninja" book and everything is working fine until I hit Chapter 3 - animated navigation. Instead of displaying across the top of the page, the nav bar displays down the page. After double- and triple-checking everything I just straight copied the example files for the book into my local server. It did the same thing. In other words, when I double-clicked the file to view in the browser it worked, but the exact same file viewed in the server did not work. I checked with the file I was working on and sure enough the same thing happened - it worked viewed in the browser but not through the server. I hope I explained this clearly. Has anyone run into this sort of thing before? Is there something on the server that needs to be configured?

View 7 Replies View Related

Make Sure That This Server Is Up And Running?

Jul 12, 2011

I'm building a very simple app that relies on a remote server. I will use this app on many websites, so I decided to store it on one server (I have control of the remote server in question).

I need to make sure that this server is up and running, so in the case it's not I can use a fallback.

Would it be a client-side approach? A server-side approach? My guess is to use a js snippet to do the job. If I'm correct, I'll probably use jquery to perfom the task.

View 1 Replies View Related

Script Not Running On Server?

Jul 24, 2011

I recently coded a page that extracts certain nodes from an external XML file and prints a line of text on the webpage.

It is an HTML page that is strictly devoted to this purpose. There is no other information on it.

The page is currently stored locally on my computer, and when I open it, the script runs fine and outputs the correct text.

However, when I transferred this script over to my web server, and locate it that way, it doesn't run correctly. When I go to the page, it is supposed to display a line of text at the top. It does when I run the file from my local machine, however when I open it from the server, it doesn't display this text. (Same browser, same computer)

When I right-click and view the source, all the code is there, and the files are identical.

why the script runs correctly only when I open the HTML page locally?

View 1 Replies View Related

Make Sure Remote Server Is Up And Running?

Jul 11, 2011

I'm building a very simple app that relies on a remote server. I will use this app on many websites, so I decided to store it on one server (I have control of the remote server in question).

I need to make sure that this server is up and running, so in the case it's not I can use a fallback.

Would it be a client-side approach? A server-side approach? My guess is to use a js snippet to do the job. If I'm correct, I'll probably use jquery to perfom the task.

View 1 Replies View Related

Running Script That Calls Php Script On Another Server?

Mar 18, 2010

i am currently exploring my options for a script I want to create and want some input on what you think are my best options.

Background

1) Our company provides a service to clients who save information on our company website in a mysql database.

2) Our clients fill in this information and will soon have the option of displaying this information on their websites (thats where the new script comes in)

3) Originally I wanted to create a simple PHP script that they could reference on my site which would get all their details for them basd on thier Host. however I have since learnt you cannot call a hp script from another domain. so idea 1 out the window.

4) So I have since moved to look at a javascipt approach. The Script will be hosted on our company server

5) Clients will call only 1 function to get their data

6) The function they call would ideally load and read the php script file that is stored on our server (FILE XXX) which retrieves the data for them from the mysql database and formats it based on how they have configured their data on our site

Firstly , Can this be done? How can i get it to load the php script (yes i know its server side not client side). I have looked into Ajax and see this can be done but not if the script is stored on a different server. How can i go about resolving this issue?

Oh and I dont really want to use iFrames.

View 6 Replies View Related

XMLHttpRequest: Script Works To Request XML File On Server But Not On External Server

Oct 2, 2010

I have the following JavaScript (see below). The script requests an XML file from the server and displays it on the page.

The script works fine when the requested XML file is stored on the same server as the script.

The problem is when I try requesting an XML file from an external server such as the National Weather Service. I get an error. If I take the XML file from the National Weather Service and save it to my server it works. Why can't I use my script to request XML files stored on external servers?

Javascript Code

window.onload = initAll;
var xhr = false;
function initAll() {
document.getElementById("makeTextRequest").onclick = getNewFile;

[Code]....

View 8 Replies View Related

AJAX :: Cross-domain Calls - Loaded From One Server Into A Website On Another Server

Mar 11, 2010

I'm trying to write a script that will be loaded from one server into a website on another server. This script is trying to talk (ajax) to the server that it comes from but I'm getting "Access Denied" errors. I'm well aware that cross-domain calls are not allowed for security reasons so my question is how does Google Analytics work because essentially thats what I'm trying to accomplish. I can embed a Google Analytics script into my website and it'll gather data and send it back to Google.

View 4 Replies View Related

AJAX :: Getting Server Date/time With No Server Side Script

Apr 19, 2010

I'd been looking for some way to get server date/time without using any server side script (such as ASP, PHP, etc).

I found this and it worked just excellent for me! I just want to share it because it wasn't easy to find.

I created a js document with code:

Code:

Now, I can use this js within a html like this:

HTML Code:

You may change your machine date/time and check both dates.

View 1 Replies View Related

Resolve Relative Server Links When HTML Source Is Not On Server

Feb 10, 2010

I would like to open an html file locally (not fetch it from a server) and somehow use javascript to fetch the relative resources from the server. One solution would be to convert all of the relative links to absolute links. I can convert the html source file anyway I wish, but ideally I would like to modify the html source as little as possible, for example insert a function that modifies the result of the src attribute. How would I go about this? Is there any trick I can use to define where the relative home is? Am I going to get into any scripting security gotchas?

View 3 Replies View Related

Saving A File On The Server W/ Js, Ie No Server Code

Dec 31, 2006

I am creating an XML document on my page with javascript. My question
is, is it possible to save that xml file on the server (I have write
permissions) only using javascript, ie no server code? This task would
be trivial using server code, but I was wondering if I can do it all
with client code and post backs? Well, any input?

View 1 Replies View Related

JQuery :: Click Not Running On IE?

Oct 30, 2009

i've put a div (passed to the function with "r") with inside three div with class "pul". These has the function:

function clic(r){
var blocco = r + " div.pul";
$(blocco).each(function (i)
{

[Code].....

This one should take the img that has been clicked (with the "each()") and by the "i" in each() changes the "src" attribute of the image (with name 0.jpg, 1.jpg, 2.jpg eccetera.. that finds in the folder) that i put in another div ("cambiaimmagine", that is inside "mostrafoto_img", that is inside "mostrafoto"). Why? This image is bigger than the previous, so that you can see it bigger. This all runs in Firefox and Safari, not on IE 6 and 7. I tried to put the alert out of the "click()" and it runs, but inside not.

View this message in context: [URL] Sent from the jQuery General Discussion mailing list archive at [URL]

View 2 Replies View Related

Server To Server Connection (with Clients)?

Dec 7, 2010

I already have a server connected to clients, clients send msgs and it echoes back to all of them and now i want when a client sends a msg it echoes on his server and the other server too .. so when any of the clients on any of the servers sends a msg it is broadcasted all over the servers to all clients

[Code]...

View 1 Replies View Related

JQuery :: IE Warning For Running Scripts

Jun 18, 2011

Is there some way to have my websites appear to be safe so that IE does not present the security warning for running scripts? None of the javascript is allowed to run unless the user "Allows Blocked Content". If I pay extra to have my sites considered "safe" will this avoid the IE warning issue?

View 10 Replies View Related

JQuery :: Multiple .js Files Not Running?

Aug 8, 2009

Im building a simple portfolio site for myself and I am trying to use the .hide() and .show() methods to hide and show the various sections and subsections. I have one file panels.js which is working fine on its own to hide and show the main sections. But a second file gallery.js, which is supposed to control the subsections, never gets read. I can see the contents of the file in firebug, but nothing inside gets executed. If I take the contents of gallery.js and try to place them into the panels.js file. the whole thing stops working. So Im assuming its something off with the scripts in gallery.js. Heres the site so far: [URL]

At this point I am only working on the "ARTWORK" section, so that is the only section that should be working, please don't bother clicking on the other sections. What should be happening is that all the entries that say "Image Title" with some lorem ipsum should all be hidden at first, and only the first sentence at the top should show, but at this point all of it just stacks up and none of it is hidden. heres the contents of gallery.js

//hide all the subsections and show the intro
$(".current_panel .image_area").removeClass("current_area");
$(".current_panel .image_area").hide();

[code]....

View 4 Replies View Related

JQuery :: Running Function When A Div Has Been Added To DOM

Apr 14, 2011

how to run a function when an object has been added dynamically to the DOM. I have the bellow example code:

$
(
'div.s'
)

[Code]....

You can also find it here: [URL] I have realised that live doesn't work with load. How can I have a function executed when the div is added to the DOM ? custom event maybe?

View 2 Replies View Related

JQuery :: Two Scripts Running But Only One Will Work

Sep 4, 2010

If you go to my portfolio page, you'll see I have some thumbnails of photos which open up as a lightbox. But since I've added this to my page it stopped my top menu from animating. (If you go to another page you'll see how the menu is supposed to look).

View 6 Replies View Related

Jquery :: Running Inside <body> Tag?

Jun 12, 2009

Ok, so I'm not sure if this can be done, but I'm really hoping it can be. I have jQuery.js referenced in the <head> of my document. Now, what i'm trying to do is run the following script:

<body>
...
<script type="text/javascript">

[code]....

View 5 Replies View Related

JQuery :: Stops Normal JS From Running?

Feb 9, 2010

Ok so this is weird. I implimented jquery to try and get some ajax funtionality working and it not olnly doesn't work, it stops the rest of my normal js from running at all.

[Code]...

EVERYTHING stops working. All my DOM events don't fire and none of my regular JS works. Anyone know how to get jquery code to work with or without normal JS code?

View 2 Replies View Related

Events - Add Server Control To Custom Webcontrol That Fires Function And A Server Side Function?

Jun 24, 2010

In ASP.Net, I am trying to create a WebControl. In this control, I have RenderControl method overridden with my html controls.

protected override void RenderContents(HtmlTextWriter output)
{
output.Write(@"<table><tr><td>");

[code]....

How can I make the button call the click event so that the server side method btnExecute_Click() can be called? Also, this button calls a javascript function before server side even.

View 5 Replies View Related

JQuery :: Times Of The Cities Running Along The Top Of Page?

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

Jquery :: Running Functions From External JS File?

Oct 9, 2010

I have a lot of things that are running on the $document.ready() area and was wondering if I can put them all into an external js file and call 1 function from the $(document).ready() call

here is what I have

Code:

<script type='text/javascript'>
$(document).ready(function(){
$(".editphrase").editable('index.php?m=language&a=changephrase', {

[code]....

I would just like to call 1 function from the $(document).ready() call that lies in an external .js file that will process the code above so I don't have so much clutter in the page. This is what I would like. I have tried it but it doesn't work.

Code:

$(document).ready(function(){
cms_init();
});

View 3 Replies View Related

Jquery :: Setting A Delay() On Running A Function?

Jun 7, 2011

I want to have a delay on a jquery function and am unsure about how to do this. My code is(jscrollpane):

HTML Code:
$(function()
{

[code]....

View 2 Replies View Related

JQuery :: Find Out If User Is Running In Browser Fullscreen?

Dec 7, 2011

I would like to know what is the the easiest way to get if the user is browsing internet in fullscreen?I use following code:

var windowHeight = $(window).height(); // returns height of browser viewport
var documentHeight = $(document).height(); // returns height of HTML document
var windowWidth = $(window).width(); // returns width of browser viewport

[code]....

View 1 Replies View Related

JQuery :: Cycle: Replace Slide In Running Slideshow?

Aug 30, 2009

Is there a way to replace the first slide in a running slideshow such that it's shown only once?? I've been trying variations on something like this with no success. The element is replaced, but cycle doesn't show it.

function doBefore(){
var i = $(".slide").index(this);
if (i == 1){

[Code]....

View 4 Replies View Related

JQuery :: Script Running On Joomla With Php Type Thing?

Jul 15, 2009

basically i have this menu system which works using a couple of jquery scripts it all works fine etc, but now i am porting my site into a joomla design ( dont ask why just a challange )at the moment i have a module on the left which has my menu in and on the right is another module which loads the content depending on the outcome of the script:at the moment what ihave done is not the finished product as i would like to make sure that this will work before moving to the next part of my scriptbefore i go on and on and on ill show you what i have:

$(document).ready(function(){
$('ul.submenu>li a').click(function() {
$("div#defaultStuff").fadeOut("slow");

[code]....

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved