How To Retrieve The Name Of My Current Object?

Dec 26, 2005

I have set up a pretty nice page with moveable layers and everything. Now I'm stuck in the very last part, how to open a popup!

Basically I have a div-layer with three events: onmousedown, onmousemove, onmouseup and ondblclick. The last one should be for opening a big image of the small thumbnail in the layer.

So what I've got yet is this:

function Oeffnen(id) {

var url = "bilder/"+window.document.images[id]+".jpg";

testwindow = window.open(url, "bild", "resizable=yes,menubar=no,scrollbars=no,toolbar=no,status=no,screenX=50,screen Y=50");
}

it's the "var url" part which is giving me headaches. The thumbnail is say /thumbs/img1.jpg. On double-click it's supposed to open a new window containing /pictures/img1.jpg. Not really difficult, but I just can't figure out how to get the "img1.jpg" part! id is the name of the div-layer.

So what am I doing wrong here?

View 5 Replies


ADVERTISEMENT

JQuery :: Retrieve Value Of Legend In Current Fieldset?

Aug 5, 2011

How can I retrieve the content of <legend>content</legend> in the CURRENT <fieldset style="display:block;"> ?

View 3 Replies View Related

JS In MooTools - Retrieve Some Elements From This CURRENT Sublist

Sep 21, 2011

I'm implementing the Sortable future from MooTools, currently, I'm tweaking it so I'll be able to use nested lists, just in the way I want it.

[Code]...

In this Sortables object, I need to retreive some elements from this CURRENT sublist. As you can see, for the moment I've placed a % sign, where normally an integer or another key would fit. In PHP, we know the function "current()" for this. But how do I fix this in JavaScript?

View 1 Replies View Related

JQuery :: Retrieve A Json Object Value?

Mar 24, 2011

Ihave a Json Object n wanna select one row based on id and name

[Code]...

View 1 Replies View Related

JQuery :: Use "ui.size.width" To Retrieve Variable Of Current DIV?

Jan 12, 2011

How could I use "ui.size.width" to retreive variable of current DIV?I am trying like this, but don't have luck:

<script>
$(document).ready(function() {
var test = null;

[code]....

View 1 Replies View Related

Retrieve Object From Dinamically Loaded HTML

Dec 13, 2005

I have this code that load HTML tags (no including <html> or <body>)
into a DIV dinamically...

after correctly retrieving the HTML, I assign it to my DIV Container

document.getElementById(containerid).innerHTML=pag e_request.responseText

now from main page....I need to get a reference to an Object (a
textbox) contained in the dinamically loaded HTML

Once in my main document this, doesn't works:
document.getElementById(containerid)

The objects that I loaded dinamically, are part of the Main Document or
not? How can I access this objects from my main page?

View 2 Replies View Related

JQuery :: Reference Current Object In Onclick

Jan 8, 2011

For a site, I am making a listing object. What it does, is it fetches rows of data from a serve using JSON. The object has a method called loadlist.to print out the data it now does something like this:

str="";
$.each(jsondata,function(){
str+="<tr>";

[code]....

View 1 Replies View Related

Find Form Object From Any Current Element?

Mar 29, 2009

How to find a form element from any tag(element) which are under that form ? code...

View 2 Replies View Related

Date Object - Cannot Get Current Month With Print Function

May 28, 2009

I was working on Date() object of javascript. When I write:
today=new Date();
year=today.getYear();
month=today.getMonth();
day=today.getDay();
Here everything was correct but when I print month then I got currentmonth-1 that if the currentmonth is 5 then t get 4. If the current month is 07 then I get 06. At last I worked by adding 1 with month like month+1.

View 1 Replies View Related

How To Pass The Dom Object Of Current Html Page To Java

Mar 15, 2006

I had a problem with my previous approach in javascript so i thought of another strategy, to work with java. How can i pass the DOM of the current web page that is the HTML page to java, so that i can parse the DOM and i need to extract the internal contents of the script tags in the page and evaluate them apart from running in the webpage.

How can i pass the dom object to java and evaluate the scripts contents from java.

View 2 Replies View Related

Retrieve The Object Of The Window Opened By Window.open

Aug 8, 2007

I know I can get the window object by using

obj = window.open( .... );

but what I need is, after the new window is popped up, the opener will
be redirected to another page, I want the another page able to control
the popup window is it possible? is there something like getWindowById.

View 2 Replies View Related

Bookmarklet Parse URL - Take The Current URL Of The Page And Open A New Window With A URL Based On The Current Page?

Mar 16, 2009

I'm trying to create two bookmarklets:

1. Take the current URL of the page and open a new window with a URL based on the current page. Some examples (I use "->" to mean "this URL turns into that URL"):I plan to use these bookmarklets in sequence, first pressing 1 to log into the CMS, then pressing 2 to edit the current page.

View 5 Replies View Related

Error "Uncaught TypeError: Object [object Object] Has No Method"

Nov 19, 2011

I just got this script for a countdown on a website and I got it to work locally but when I upload it to the server i get the error "index.html:22 Uncaught TypeError: Object [object Object] has no method 'fancycountdown'".

I have checked to make sure all other javascript files are loading and they are and I can't figure out whats wrong. You can see it [URL]

View 2 Replies View Related

JS To Retrieve Data From DB?

Mar 2, 2006

We are trying to develop an Engineering application using PHP,
Javascript with Informix as the back-end.

Is it possible to retrieve data using Javascript but by accessing the
Database. Say somebody enters part_no, than using Javascript is it
possible to connect to the part master and retrieve the division and
desc information?

I am not allowed to use the PHP because this will require the user to
insert the part number on the first page (user input page) and then
retrieve the information using PHP and display the info on the second
page (processing page).

I will need this to be done on the same page. That means the info will
need to be retrieved instantly (on the fly).

I think of building a javascript array for the part master table using
PHP but finally decided not to as the table is a huge table (contains
more than 1000000 records).

View 5 Replies View Related

Trying To Retrieve PageOffSet

Jul 20, 2005

I'm trying to get the x and y cords for a window using "pageXOffSet" and
"pageYOffSet" but all it returns is "undefined". Is this old syntax? How
do I do this?

View 2 Replies View Related

Retrieve Value From Popup

May 2, 2009

I have a form (name="test"). In it, there is manny inputs. To make it easy, there is a buttom beside the input, opening a popup window. In the popup window, I connect's a DB, and find a value I will pass to the form. The link passes a value ex a ID to the spessific input on the form.

View 1 Replies View Related

Retrieve Element Value By ID

Jul 7, 2009

I'm not a JS expert or anything, but I was just wondering if it is possible to get the value of an element from its ID. For example, if I have something like (inside a HTML document):

<span id="12345">0</span>

Is it possible to retrieve 0 if I specify that I want to retrieve the value from the ID 12345?

View 5 Replies View Related

Retrieve Textbox Old Value?

Oct 27, 2009

say in textbox its written you, and i erase it and write bingo. how can i retrieve back the old value you? simple solution i dont want to use, i want different way. i do inputhidden where i store the old value always

View 1 Replies View Related

Retrieve A Value From An Array

May 23, 2004

date_arr[0]=new Option("January",31,1);

I got this value, how do i retrieve the last digit from it?

This is what is in the script now, it does display the first value and the text . But i want the last value in this OPTION,

document.writeln("<OPTION value=""+date_arr[x].value+"_"+date_arr[x].value+"">"+date_arr[x].text);

somebody got an idea on this one?

View 1 Replies View Related

Retrieve Textbox Value From Datagrid

Jul 23, 2005

I need to retrieve the value of a textbox control in a asp.net datagrid
using Javascript. Can anybody help out. I believe the control clientID needs
to be passed client side so the javascript can reference....

View 1 Replies View Related

Retrieve Web Page Content

Mar 27, 2007

I want to retrieve any web page content using javascript . suppose
I logged into my gmail account and opened my e-mail. now i want that a
javascript will execute on the page and read all text content from
that page (e.g. all email subjects ) and save it in a text file . I
may embed the script in my browser. Is this possible ?

View 11 Replies View Related

Retrieve CGI Variables From Javascript

Jul 20, 2005

Here's the situation. I have a static html page which we want to update
to include some dynamic content. I want a counter that keeps track of
the number of times anyone presses the "add" button, and display that
number. So, that page would look something like:

Number of calls today: 5
Add | Reset

The "5" would increment with every click of the "Add" link. The "Reset"
link would reset the counter to 0.

I have a Perl script that does all of the accounting stuff (opens a file
that contains the number, increments it, resets it, etc). What I don't
know how to do is to get the data from the CGI script to the web page.
I'm imagining that you can use Javascript, but I can't figure it out.
My CGI script can accept three options (add, view, reset). So it you
call it like so [myscript.cgi?action=add], it increments the counter by one.

So, in a nutshell, this is what I want:

1) the web page to display the # of calls upon load.
2) When a user presses the "Add" link, it invokes the CGI script to
handle the accounting stuff, then refresh the page with the new number
of calls.
3) When a user presses the "Reset" link, it resets the counter to 0.

View 6 Replies View Related

Retrieve Text Size?

Jul 20, 2005

This is in connection to the tread: Re: changing browser text settings?

I am wondering if there is a way to retrieve the browsers text size (not
change! ;-) ) so that I can dynamically resize the size and position of the
layers to accomodate larger than normal text-size settings. I really hope
there is because it would mean not re-writing the whole page (which I'm not
sure how to go about).

the page is here:

View 2 Replies View Related

JQuery :: Retrieve Id Of A Page?

Nov 3, 2011

I would like to know how I can retrieve html data with jQuery. With my current project I have all pages in 1 html file (jQuery mobile). Every page has his own ID. Page 1 has id="question_1", and the next one is id="question_2".

Now I would like to retrieve this ID and add +1 to the question. So if you press a buton it will always go to the next page.

<!-- QUESTION #1 -->
<div data-role="page" id="question1" class="question_page">
<!-- header -->
<!-- content -->

[Code]......

View 2 Replies View Related

JQuery :: Retrieve The Value Of And Element?

Aug 23, 2009

i want to retrieve the value of different elements in the page . Like listbox , testbox and some other.

View 1 Replies View Related

JQuery :: Retrieve Specific Li From Ul?

Jun 19, 2010

I wrote this simple snippet to animate a listitem from an unordered list. Here it is:

function OnLoad() {
$('#navigation').mouseover(function() {
$(this).find('li').stop(true, true).effect("pulsate", { times:2 }, 150);
});

So I have a div with id "navigation" which contains an <ul>, and the <ul> has several <li> items.What I want to do is to animate the <li> items as i rollover them.My question is , how can I only animate the current <li> I rollover, because right now when I rollover one, all <li> items animate.

View 2 Replies View Related







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