Communicating To Server .php Without Using <form>

Jul 23, 2005

I'm trying to come up with a way within a client-side web page of uploading a couple files to a server-side PHP program without using a <form...>. I don't want to give up the page which happensafter the <form...> executes. Instead, I want to upload the files, then execute a <form...> for
another purpose.

View 6 Replies


ADVERTISEMENT

Communicating Through Windows

May 1, 2002

Its a message system im putting together. I would like users to be able to have a friends list. I know the php to manage the friends list but i dont know the javascript to achieve my goal here.

I want them to be able to click the Friends List link and have the box pop up. Then have them able to click the persons name and have that persons id show up in the Mail To: Text Box in the first window. Anyone know how to go around doing this. I know its possible cause hotmail does it.

View 1 Replies View Related

Communicating On Ports Other Than 80?

Feb 23, 2011

I have a remote client that has a ridiculous latency over port 80, and we're looking to increase response time. Due to other factors, they do have a decent response time when sending email.

It's a long shot, but I was wondering. Is there any way to open a port other than 80 via browser using javascript?

View 9 Replies View Related

Communicating Via Javascript Across Domains

Jul 20, 2005

- two websites, one on domain1 and the other on domain2
- domain1 opens a new window which is a javascript app from domain2
- domain1 needs to communicate with the javascript app on domain2

The problem occurs in that last step. Browsers don't allow script access
across domains for security reasons, rightly so. Nonetheless, I still
need to communicate with the application. I can reload the window
passing the necessary commands through the url, but this is slow because
the whole javascript app must reload.

Anyone have any ideas about a way around this limitation that would be
semi-efficient, at least more efficient than reloading the app? Signing
the script isn't an option for cost reasons. I have control over both
sites, so I can do anything that needs to be done.

View 13 Replies View Related

Communicating Between Two Frames From Different Servers?

Dec 4, 2002

I'm trying to send some form values via JS from one frame (a PHP application I control which creates form fields from database values) to another (a shopping cart on another site) - but I can't do this because normal scripts are barred from setting values on pages from other servers... unless the script is signed.

So, am I right that I HAVE to use a signed script to accomplish this goal? Are there lots of cross-platforms issues in getting extra privileges for signed scripts? (Does IE even recogize signatures the way NN does?)

I've never worked with signed scripts before - are they worth the hassle?

View 1 Replies View Related

IFRAME Communicating With Parent Window

Dec 2, 2004

I've got an IFRAME called "gallery" and I want to communicate with the parent page that the IFRAME is sitting in.

The IFRAME contains a load of thumbnails - and I want to tell an IMG to change its SRC... so the image changes when you click on a thumbnail.

View 1 Replies View Related

JQuery :: Use Form Data Sent To The Server Using Formwizard Plugin?

Jul 14, 2010

I found this formwizard script example online but I don't know how to use the data with php for emailing and saving to database for example.The script attaches the result to <p id="data"></p> like this

firstname=&surname=&day=DD&month=MM&year=YYYY&lastFour=XXXX&countryPrefix=+358&areaCode=&phoneNumber=&email=jasonhoefie@hotmail.com&username=&password=&retypePassword=

Attachments
jquery-formwizard.zip
Size : 48.6 KB
Download : 422

View 4 Replies View Related

JQuery :: Retrieve Server Response After Submitting Form In HTML?

Dec 28, 2011

I have designed a form as below

<form action="https://checkout.google.com/api/checkout/v2/checkoutForm/Merchant/XXXXXXXXXXXX" id="BB_BuyButtonForm" method="post" name="BB_BuyButtonForm" target="_top" >
<input name="item_name_1" type="hidden" value="Test Product"/>
<input name="item_description_1" type="hidden" value="Test Product of my cart"/>

[Code].....

On hitting the button one new window is getting opened with response URL from 3rd party(in this case Google Checkout). But for me i need to open this in a inline-popup (lightBox, ColorBox etc...) rather than new window. In the form definition, i have replaced mymerchant_idwith 'XXXXXXXXXX' for privacy purpose

View 1 Replies View Related

JQuery :: Modal Form Won't Post Back To Server Unless It Is Closed First?

Jan 31, 2011

I have created an entry form that I display in a modal dialog. I have two buttons on the form: "Add and close", and "Add and allow me to add another". However the only time my modal form will post back to the server is after the form has been closed. I want to do the following: The user opens the form in a modal dialog. The user enters data, and clicks the "Add and allow me to add another" button. The page sends the user input to the server, which adds the input to a database and updates a datagrid on the page. This updated datagrid is visible behind the modal form, so the user can see it happening in the background The form clears all input fields and the user goes again. Any code I write that calls the server (button click events, ajax calls, etc) are ignored, unless the modal form has been closed.

View 1 Replies View Related

Ajax :: Request Using Prototype Not Sending HTML Form To Server

Mar 20, 2007

I spent the best part of yesterday trying to get my form to be sent to the server however for the life of me I cannot figure out the problem. I haven't used prototype before but here is my code that I think should work perfectly fine,The php script works perfectly, i've entered test data into it and it makes a connection to the third party server using curl and then requests information that I get back i.e. the routing id comes back. But I cannot test the data using the form as the request isn't working for some reason.

View 3 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

JQuery :: Upload Files Form Plugin - Breaks Xhr Detection On Server

Sep 16, 2010

From the little I've read in this plugin's source code, ajaxSubmit() switches to "iframe mode" whenever it detects a file link in the form. The file is uploaded fine, but the server, which normally replies with different content. based on HTTP_X_REQUESTED_WITH header, fails to do its thing. This header is normally set to "XMLHttpRequest" on normal jQuery .ajax() calls.

The server I'm running is on rails, and I'm using the "request.xhr?" test.

I admit I'm not too familiar with iframes (or jQuery, for that matter:), but surely there must be a way to get around this, so that this can act as a simple drop-in replacement. Should I be looking at other headers, like "Accepts" or the kind, or should the plugin (or my code) be forcing the HTTP_X_REQUESTED_WITH header?

View 3 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

JQuery :: [form] Stop Success Message Return If Validation Fails On Server Side

Oct 12, 2009

I am making a call to a php file which right at this minute has no validation, all validation is been done by the jquery form plugin. the validation (xss prevention soon to be implemented) in the thanks fails I want to stop the processing of the form i.e. stop the return of success.

[Code]...

View 1 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

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

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

App Won't Run On Server?

Nov 24, 2010

I have an app which preloads images from a folder called 'myimages'; I load the images using src='myimages/picture.jpg'. The 'myimages' folder is in the same folder as my web pages.My domain on the server is villaswfrance.com and I have copied the 'myimages' folder to the server at the same level as the web pages which are directly under the villaswfrance folder. When the app runs it fails when trying to load /myimages/picture.jpg. Does the leading / take me to the web pages or to the villaswfrance folder. If the latter I understand why it fails - if the former I do not understand.

View 5 Replies View Related

How To Get Data From Server

Jul 23, 2005

What i want to do is that this function post data to the server (ASP) and
the server will response with 'OK' My question is how can i send data clientside from Javascript to the server ? (navigate ? with url ?)

and check the returned data in the same function ?

function ShowData(TxtArt)
{
alert(TxtArt + ' : ' + parent.frames.Bottom.TxtUsrName.value + ' - ' +
parent.frames.Bottom.TxtRemarque.value); // testing purpose
// post the data to the server. ex .. myURL.asp?userID=1000&Art=ART1201
// fetch the data from the server. to verify if the 'OK' is recieved ->
the server will response with 'OK'
// if 'ok' -> i will update clientside an frame (ex. contents of
shoppingbasket)
}

Any idea's ?

View 3 Replies View Related

Determine Name Or IP Of Server

Mar 30, 2006

I know it's possible to retrieve the IP address of a visitor's computer. However, I need to figure out a way to get the IP address of the server where the files are placed. Here's a description of my issue:

My application, along with some HTML Electronic manuals, are loaded onto a server in an electronic classroom. In order to get to any of these items (manuals or app), the students access the server where an index page is located in the D drive and click a link to get to any of them.

The problem is that these manuals are loaded into the D: drive while my application, because it uses ASP, is saved in the C:inetpubwwwroot folder.

The other issue is that this application will not be placed in just one classroom. Each classroom will have its own server with any number of computers accessing it. Since I don't know how each of the servers will be set up, I need to get the IP address so I can access the wwwroot folder.

What I need to do is figure out, using some non-server-side language, what the IP address or computer name of the server is so that I can access the appropriate folder in the wwwroot folder.

View 2 Replies View Related

Getting The Web Server Name Through Javascript

Sep 19, 2005

Is it possible to get the web - server name through Javascript? If yes, how?
My code goes as follows. I get an error after executing this

<html>
<head>
<title>Untitled</title>
<script>
function disp()
{
str1 = location.host();
alert(str1);
}
</script>
</head>

<body>
<cfoutput>
<a href="##" onclick="disp();">Click me</a>
</cfoutput>
<cfabort>
</body>
</html>

View 2 Replies View Related

Errors On New Web Server

Apr 17, 2006

I'v just finished the first web site i wrote which encorporates some javascript. It worked fine on my test server, but as soon as i moved it to the production box, I now get all sorts of errors like :Unterminated string constant when i open the first page, and Object expected when i try to call a javascript function by clicking on a menu item. Is there some sort of configuration that must happen on my production box? The same coding works fine on the one server but not on the other.

View 4 Replies View Related

Js Works On One Server, Not Another

Jul 23, 2002

I have a basic js that is used to change some images when the user clicks on a link. it worked fine on my server (IIS 4), but when I upload it and the images to another IIS server the images don't display most of the time. I know this is client side -- so why is the server making a difference??

<script language="javascript" type="text/javascript">

var p = new Array(2);
var t = new Array(2);

p[1] = new Image();
p[1].src = "images/8x8_grid.gif";
t[1] = new Image();
t[1].src = "images/grid.gif";

p[2] = new Image();
p[2].src = "images/3x3_hori.gif";
t[2] = new Image();
t[2].src = "images/hori.gif";

function change_image(whichone) {
thumb.src = t[whichone].src;
pattern.src = p[whichone].src;
maintable.background = pattern.src
}

</script>

Here is how I call change_image...

<A href='javascript:void(0);' onmousedown="change_image(&#391;');return false"><img src="images/btn_13x13.gif" width=13 height=13 border=0></A>

View 6 Replies View Related

Javascript On The Server Side

Jul 23, 2005

However, this piece of Javascript uses some other script which is large.

<script src = "./js/tmp.js".....>

This will work if the file "tmp.js" is local. However this reduces the
portability of my *utility* Javascript
as users have to have that "tmp.js" for every webpage they have (if they
want to use it :D)

I thought of uploading "tmp.js" it to somewhere and change my code to

<script src = http://www.somewhere.com/js/tmp.js ....>

The all the users have to do is copy the piece of code that I wrote
BUT THIS DOES NOT WORK. I TRIED IT.

My questions are:

1. Is there something wrong with server-side Javascript? Or am I missing
something?

2. Is there another way to make my code portable?

View 2 Replies View Related







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