Sending Images As Variables From One Site To Another
Jan 25, 2009
I'm kind of new to Javascript. I was trying to do this in HTML, but I was pointed in the direction of Javascript. I've found multiple examples of variable sending, but I can't seem to find one that I can easily change to send an image. I've got image [URL]. I want to send from examplesite.com/page.htm to examplesite.com/page2.htm. I want to make the variable named AxeOfPrecision. This may be a simple thing in Javascript.
I won't lie to you. I'm trying to get data from html source from a 3rd party website. I'm NOT interested in stealing code,hacking,sending spam or anything sinister like that. I just want the content that is displayed but I need to get it automatically via VB. It's only publicly available price information but I don't think the website wants everyone to be scraping their info into a database.
Apart from the base URL, the site concerned navigates solely through javascript functions and session variables. I suppose what I'm asking is, is there anything out there that tells me (the syntax) of what my browser is actually sending to a website when I click a javascript toolbar/button/dropdown within IE.
I will explain this the best way that I can. I have a form that can be filled out and once the submit button is pressed, a lightbox pops up to prompt a thank you page. The thank you page is called verify.php. Basically when the user fills out a form and presses the "submit" link, a lightbox pops up saying "thanks". I need the form values to be displayed in this lightbox. Since my values aren't actually being sent using the POST method, the verify.php is does not show my confirming value box (ex: Thank You Brad Heckle (this is the $fullname variable) for submitting an application.). This verify.php is called using AJAX and displays without loading a new page on the index.php when "submit" is pressed. Since php needs the variable to be passed through the POST method so that it can grab them, AJAX is causing some problems.
I prefer jQuery over flash and not sure how to tackle this, so please advise as best you can. Trying to create a site that allows for images to go full browser and then have the ability to have the other images slide in based on a click.
I also want to float a menu that will allow it to pull in other media (video, that would slide in the same way). The best example I can share is this: http://j.mp/5U79i1 What he is using is flash based (slideshowpro director and slideshow pro for flash). Not interested in flash for this personal project.
I am developing a framed site. I'd like to utilize javascript "mousevoer" to change images that are used for navigating the site. Where to find something like that?
The intention is that when you select a site from the list, the banner underneath changes. However, I can only get it to do this once, then it simply refuses to let you select anything else. This is the code I am using to change it:
function defineimage() { if (document.forms[0].gourl.value = "http://jeff.zhomg.com") { document.images.linkimage.src = '/images/exchange/jeff.gif' } else if (document.forms[0].gourl.value = "http://www.strangedrawingsartgallery.com") { [Code]...
I have some image data in a Javascript variable, and I want to display it. I have a technique which works in Firefox but not in Internet Explorer :
<script> var testImage = <image data as a string> </script>
<img src="javascript:testImage"></img>
I understand that this should work in Javascript 1.2 and above, which supports null characters in strings. Does anyone know why this doesn't work in Internet Explorer?
have created ecommerce site in zen 1.3.9h using a template by bling themes called "digital shop". sadly we cannot get any support. I have image handler 2 installed.my slider is producing blurry images and i need to know how to set the variables in the js script to stop it stretching the images. please view my problem.[url].....my pictures in other areas of the site are perfect and resolution is acceptable. i am sure that problems are due to slider.I found two JavaScript files that control the slider, they are in my - storeincludes emplatesdigitalshopjscript
first code; this.each(function() { var obj = $(this); [code]....
this may be more of an "html" issue, but I'll wing it.
i've got a multi-language site, where the home-page of each language group features a link to a popup window that offers background info on site management. the popup is fired by a javascript function, when they click the site management link. there's also a "window close" function button so they can nuke it as they please.
now, oddly, people who search for my site in the chinese language on google, are sent directly to the site management popup window, which of course, opens in their "full" browser window, and which also has no links back to the main site, because it's meant to open only as an "accessory" to the main site.
my question is this: is there any way, with Javascript, that I could determine if they arrived at this window from "off-site" (ie, a google search), and therefore offer such "off-site" visitors a link back to the principal site, a link that would be hidden for visitors who clicked the popup window from my own site?
I have some JavaScript which is splitting out the different variable elements from the URL.Now, how do I set the internal variables?Then I want to set the variable ScriptHeading to be Change and the variable ScriptType to be NewThread.I keep finding all sorts of lovely code showing how to split out the various sections in many different ways, but I can't find anything on how to actually set these variables.
Basically, I registered for a free board at one of the various sites because my server doesn't support .cgi scripts. I want to know if there is a way to have the data from a form on my site post to the board site -A user would fill in my form, click submit, and a new post would appear on the board site -as if they had entered it there. If you can point me in the right direction, I would be grateful. Here is my thinking.
A) I can't locate the script that they use to perform a "submit"; so I thought I might enter their <head> data (as far as xmlns, href, etc) in my <head>; that my website might call up their script files, css sheets, etc.
B)I could code my own Javascript function to send my form data to their site. If I knew how to simulate a mouseclick on someone else's site, I could have the script "click" there, paste the data, and hit the submit button. But I don't.
C) I could size their site down to the form itself and put it in a frame on my page
Option C is clearly easier, but I would prefer option A or B. I have time and will happily do the research myself; provided that I know if approach A or B is even feasible.
I have a program written in Javascript and fully functioning which takes a user-selected directory name and then displays all the photos in that directory in a certain format.
I am now wanting to expand the program to allow users to optionally enter their own strings and the program will use all the photos from www.flickr.com which use that string as a tag.
I have a PHP interface to flickr (called PHPflickr) which collects all the relevant photo urls. I now need to get these images back into my Javascript so I can process them using the existing functions (rather than rewrite all my functions in PHP code and have two sets of functions in the program). I found on another thread a means to do this for a date variable:
but being completely new to PHP I'm not sure what "addslashes" might be or what formatting will be necessary if I am starting with an array of urls. Code:
I have a form that calls a perl script. A few javascript routines in the form do a few things prior to submitting. For some reason, however, the perl script is being called twice (the perl script sends out an email, and submitting the form once results in two identical emails.)
Here are excerpts from the script that I believe to be relevant (I can post more if this isn't enough, but it's long and I'm trying to keep it brief.) Can anyone tell me what I'm doing wrong? I've read about how you need to return true after calling the javascript via a button click, but I've done this kind of thing in other places and it's worked fine. I've also tried inserting a return statement here in the function and it doesn't seem to make a difference. Strange. (BTW, I changed the domain name in the URL out of courtesy to my client, just FYI.) Code:
I am using triple ajax dropdwon in my php file.In my form i have species_scientifc_name & on select I am sending its id to a php file for retriving data for second dependent dropdown box, Here I need to get this id in form action file.
As you can see I send the variable level=A to php on next page. What I would like is send another variable for the TOP item: OKP How should I do that ?
i have a some code <form><td colspan=ƈ'><input type='button' onClick=javascript:window.open("calendar.php","name","attributes") name='button' value='Book' /></td></form>
(it is echoed in php)
the thing is when a link is clicked on the pop up i want it sent back to the original page and the pop up closed..
how to change images based on action. Even clicking changed images should do respective actions. and while displaying only one image at a time sholud get displayed. I am using three images for a single column of a table in Jsp. Code:
What I'm looking to do is have a folder of images that I have show up on my website.I'm also looking to pull from this folder up to 6 or 7 times on the same page w/ randomized pictures that do not repeat.Finally, I'm looking to be able to size and name these images based on which image randomly pulls. b/c it's not grabbing the images.
I have to do a slideshow with images of different widths... am using cycle plugin, which I like very much... I have a little test slideshow here, http:[url]....it's not centering imgs in containing div (I made div width of widest image.. this will work for my situation, in which imgs will be hard-coded..)if you inspect img element in firebug (#slideshow img), it shows that the plugin adds a style of position: absolute; top: 0px; left: 0px .to the img; why does the plugin do this.. how can I center the images in containing div...
I need to refresh multiple images on my site. So every time the page gets refreshed the images need to change. It worked fine with the script below, but this is only related to 1 image
I tried to copy the script and change the "ID's" but this does not do the job.