Pop Ups In A Dynamic Page

Feb 2, 2006

I'm new to this so i'm not sure whether this is easy or not...anyways my problem i have a link in first page (call it page A) that opens a another page (page B) in a 500X400 window.this works fine and this is the code:

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500 ,height=490');");
}

<a href="javascript: popUp('page B')">link</a>

This Works fine...

But when i dynamically load Page A in to another page (page C) the link doesnt work.

link property shows:
directory/javascript: popUp('page B')

instead of
javascript: popUp('page B')

can anybody explain why this happens please.

View 7 Replies


ADVERTISEMENT

Load Page Into Another Page With Dynamic Height?

May 1, 2010

I have a question about loading an external .html page into another page.Presumably, I need to accomplish this by using iframes, right? I have a lot of files (around 1000 files) that I need to load into the same iframe. It's only a part of the total page I need to load and to create over 1000 pages instead of using an iframe (or another way to load a page into a page, which I don't know yet?) is much more work than using the frames.

Anyway, that for background. Now to the reason why I need dynamic height. Some of the pages are like 500 px in height, while the other half of my pages have a height of around 1500px (though the height of 80% of the pages vary per page! but approximately these heights as an example).If I'm viewing a small page with a predetermined set of height of 1500px, I'll be viewing a lot of blank space. Which is why I need to get around the fixed height, so the solution is a dynamic height. Another reason why I need a dynamic height, is because I have a 'back' button function which will lead you to the previous visited page when clicked. So if you were viewing a small page, then clicked a link to view a large page.... and then click on the back button at the bottom of the large page... You'll be taken back to the small page, but viewing it from the same point as you were on the large page, so you'll be actually viewing the huge blank space.

So... I've searched the web endlessly for a script to let me predetermine the height of the loaded pages, but none of them actually give me what I want.I need the script to work in at least the three main browsers (IE, FF and Chrone) at the same time. I've only found scripts that'll only work for IE, or only for Chrome and a lot of scripts that don't even work at all. I could give you some of the codings I've found, but they still don't work well enough. Also, some of those will lead me to the top of the page when you click a link. Since there's a lot more on the main page, I either need it to stay at the same position as the previous page visited, or at the top of the iframe, not the top of the parent page.I've been searching endlessly on the web and I cannot find something that works good enough. It doesn't have to be a frame, but so far, that's only way I've found to load a page into another page.

View 14 Replies View Related

Dynamic Page Building

Oct 4, 2006

I have a form that has two radio buttons. When the first one is
clicked, I would like the page to refresh (keeping the form data in
tact) and then displaying 2 new fields that need to be filled out. If
the second button is clicked, I need the same thing to happen, only it
will display two different fields needing to be filled out.

Does anyone have code that will do this? Or is this even possible with
JavaScript?

View 10 Replies View Related

Detecting Dynamic Page Changes

Apr 7, 2007

I'd like to be able to detect when page content is dynamically changed
by Javascript. I'd like to detect any changes to the content, such as
the addition of new DOM elements and when DOM elements that are hidden
are made visible (or vice versa). I will have no advance knowledge of
the scripts that will be run along with the script I will create.

I've implemented a solution that works reasonably well, but I'm not
sure if there are cases I'm not thinking of where it will fail, or if
there are more efficient means of doing the same thing.

My solution is to simply retrieve and periodically compare the content
of the innerHTML property of the main body tag elemnt.

So, summarized as follows:

function check() {
var bodyContent = document.getElementsByTagName('body')[0];
if(bodyContent != oldBodyContent) {
alert('body changed');
}
setTimeout(check, 500);
}

Is there a better way? What won't this catch?

View 1 Replies View Related

Dynamic Links Used To Create Page?

Mar 5, 2005

Here is a short tutorial on dynamic-links which use javascript to create the page. Ok to start open up notepad and type

<html><head>
<title>My first dynamic link</title>
</head><body><script>
var name=prompt("Enter name:","");
var age=prompt("Enter age:","");
if (name == "" || age == ""){
document.write("Please reload and fill everything in.");
} else {
document.write('<a href="javascript:dp='Your name:'+name+'<br>Your age:'+age+''">Click here for dynamic page</a>');
}
</script>
<noscript><a href="getfirefox.com">Get a decent browser</a></noscript>
</body></html>

Ok save it and test it out. I am writing this kinda fast so if it doesn't work pm me or reply to this topic. Ok we will go over what it does now.
1. First it gives you the prompt name then age. It checks whether they are both filled in and if they aren't it says to reload. Otherwise it writes down the link. Next we will go over the link.
2. Here is the infrastructure of the link.

1. The start of most links "<a href="

2. The starting of the string for the browser to connect to " " "

3. The tag that defines a javascript page and its name is dp. "javascript:dp"

4. What the javascript equals " = "

5. Start of the string for the javascript to do " ' "

6. Now it displays the text Your name: "Your name:"

7. It now appends the variable from the script name to it. EG:your name you entered. "'+name+'"

8. It makes a line break and displays the text Your Age: "<br>Your age:"

9. It now appends the variable from the script age to it. EG:your age you entered. " '+age+' "

10. Leaves a blank space " "

11. Starts to end the javascript string by closing the space for text and a semi-colon to end the page. "'"

12. Ends the html string for the link and displays text for the link." ">Click here for dynamic page"

13. And now closes the link. " </a> .....

View 3 Replies View Related

Ajax :: Get A Php Page Content (Dynamic)

Apr 5, 2011

I am trying to get a content of a php page(Dynamic) with the help of Ajax by sending Get request to the server page.Like the script should fetch the content of server page (Can be changeable with time )into a certain div tag that i will define. I dont wanna use prototype.js to make the script little bit faster.

View 2 Replies View Related

Dynamic Page Generation For A Link?

Dec 17, 2010

I have to do a project, the requirements i have got are, same link on multiple pages should lead to a single page on client's site, but the page should be different for each link clicked.

What i understand from this is, we will send parameters with each link to a JS or php file and then generate a dynamic page each time, but i am not clear how many files we need to call and what will be the sequence. I want to implement this in JS and php.

how to implement it with JS and PHP if we send parameters with the url and if we don't send any parameters.

View 1 Replies View Related

Create A Pop Up Window On Dynamic Page

Oct 12, 2009

I'd like to create a pop-up window for my site. I've used behaviors in the past. I'm not sure if that's the best way now. Basiclly I have a photo gallery with thumbnails. Once you click the thumbnail I want a larger window to open with the image. I've seen the javascript windows used that use CSS lightbox, however I can't get it to work with my site. I guess I should mention I'm using asp vbscript ,ms sql database with a link to the image paths that are sitting in the images folder.

View 2 Replies View Related

How To Scan A Web Page And Create Dynamic Links?

Jul 23, 2005

I searched, but couldn't find answers--probably because I'm not sure what this is called... Anyway, I have about 50 web pages and I want to have some JavaScript that will read in a list of keywords, scan the web page and create links on any of those keywords... Is there any way to
do this sort of thing?

View 5 Replies View Related

CSS Not Rendering In Dynamic Areas Of An HTML Page - IE Only

Dec 21, 2006

This is sort of a design/javascript question. It involves CSS
rendering in dynamic areas of a page using IE.

E 6 & 7

HI There, We've created some example static html pages (using CSS)
that look great in IE. We are now converting these into dynamic pages
that use javascript to dynamically update certain areas of the page.
After the conversion the dynamic areas of the page do not render the
CSS styles (the styles are not displaying correctly). This only
happens in IE. The styles display correctly for other browsers
(firefox).

I am using the javascript DOM to update the dynamic areas of the site.
For example when creating a <atag that needs attribute
class=over....I add the following code.

linktag = document.createElement("a");
linktag.setAttribute("href",pathName);
linktag.setAttribute("class","over");

it's the class=over that is not rendering when the page is updated.
Has anyone seen this?

View 3 Replies View Related

JQuery :: Dynamic Underlining For Links On A Page?

May 9, 2009

probably a simple question but I can't for the life of mefigure out how to do this:I have a page that has information on various # anchors, a list ofthem are at the top and once clicked I need the one clicked to becomeunderlined and remain underlined untiled a different # is clicked.How on earth do I do this? I've managed to use jquery toggle to turnon an underline once it is clicked, but i have to click the same linkagain to turn it off, which is not what I want, I need it toautomatically turn off once a different link is clicked

View 2 Replies View Related

Put Some Hover / Link Style To Dynamic Page?

Feb 9, 2009

I'm trying to put together a mockup website. to test my knowledge on javascript.So my problem now is putting dynamically a css style using javascript. The style that I need to dynamically put is a hover style, visited style, and link style.

Code:
function moveBar() {
var bar = document.getElementById("taskbar");

[code]....

View 4 Replies View Related

Create Dynamic Pages And Buttons On The New Page?

Dec 8, 2009

i have a developed some static pages (around 140) of them which basically is used like a quesstionare or a workflow. If the user answers yes or no then another page opens up bases on the input given by the user.

Now my people want just a single page instead of all the 140 since it takes a lot of space on the server. presently this is still not hosted on the server. Is it possible to embed all of them into one page by writing different functions? i did try and it gives me the next questions by creating a dynamic page but when the yes and no button do not populate. is it possible?

View 8 Replies View Related

JQuery :: How To Load Dynamic Content From ASPX Page

Feb 9, 2011

I have jQuery loading content from an aspx page - however, once this is loaded, jQuery doesn't appear to "see" the content. For example, in the code below, I am retrieving a table, with the class "stripeme" from the aspx page - I then try to add the mouseover/alternate row scripts, but my table does not change.

My main page is:
(page head info removed for length)
<script type="text/javascript">
function showDetails() {
var div = $("#divResult");
div.slideUp(function () {
div.load("getContent.aspx", .....
Should I add dynamic content, that I then want to manipulate using jQuery, in some other way?

View 1 Replies View Related

Create A Dynamic Way To Change The Page Titles On A Website?

Mar 19, 2009

I want to create a dynamic way to change the page titles on a website. I am currently using a php include feature and due to the variable data required for a title/meta is there an easy way to control this from one file and then include it in a similar way?I don't really want to go through lots of pages manually amending it in the future?

View 1 Replies View Related

Open Dynamic Html Page As Layer When Onmouseover?

Nov 9, 2010

find the attached html that i am working on. this has 3 columns and the 3rd column is 'Show Comments' link. when I hover the link it should display the html page on top my existing page like a tooltip.

For Example: In this forum, when hovered on each topic, the topic description is displayed as tool-tip.

View 1 Replies View Related

Can I Do A Simple Update In An Excel Through An Html Page Without Using Any Dynamic Web Pages?

Sep 22, 2006

All I need to do is; on the click of a button, import the numerical
data in an html form (only one field) to a cell in a spreadsheet. Both
spreadsheet and the html file reside on the same server but there are
no dynamic capabilities. All I can use is html pages + javascript (or
anything else which do not require any special programs to be installed
on the server). Is this at all possible?

View 2 Replies View Related

Dynamic Include Page? Change What's Included As Mouse Moves?

Jul 20, 2005

I want to set up an Include page in a cell of a table. Then I want to be able to change which page is included on the fly as the user moves the mouse of the various links on the page. How can I do this?

THe include page was set up via FrontPage so it put it's Bot stuff in there, but if someone could tell me the "standard" way to use an include page and if there's a way using onMouseover etc to then change that and refresh it on the fly, that'd be great.

View 7 Replies View Related

JQuery :: Load Specific Content From A Dynamic Page Into A Static One?

Nov 8, 2010

The original question was: does anybody know how to load a specific content and not an entire web page when using the jQuery.get below?

$.get('filename.html', function(data) {
$('.class_name').html(data);
});

and was given this code to use/try:

$.get('filename.html', function(data) {
$('.class_name',data).html(); //returns the HTML of .class_name inside of filename.html
});

but it didn't quite work. It loads the entire web page into the defined class name rather than loading a specific content (Look below for further understanding)The filename.html which has content tag names like "[Copyright Year] that goes in the footer position of the site gets dynamically generated.I've created another static page help.html that has pretty much the same content overall except the dynamic content won't get loaded with the content tag (the system doesn't allow static pages to load them). This is what brought me to this solution. So now that I've added a class name to the indicated class that I want to load it pulls all the content and styling of the site rather than just the dynamically generated content of (filename.html) .

<div class="adp_footer">[Copyright Footer]</div> <---- Doesn't get loaded when I used any of the above mention jquery strings,

View 3 Replies View Related

JQuery :: Dynamic Height / Width Sometime Broken On Page Load?

Aug 28, 2009

I've written a small plugin to serve as a feature rotator and am having one strange problem.You can see some demos of the plugin and documentation here:

http://pbskids.org/pbskidswidgets/carousel.html.The plugin does a number of things that involve reading the width and height of DOM elements and using them to set the width and height of other elements. The problem is that sometimes in Firefox and Safari, when the page loads, the widths and heights of panels in the carousel are fracked.

Reload the page and the problem's fixed. In Safari, I can't get it to happen again on many reloads. In Firefox, though, if I reload repeatedly, I can get the problem to happen again: maybe once every seven or eight times.It looks like something's happening with page loading, but I'm at a loss to diagnose it further: is the script firing before the elements have fully loaded sometimes, and then works on subsequent tries because those elements are in the cache? Also: I've never seen this error in any of the IE versions.

View 1 Replies View Related

AJAX :: Create A Page Which Pulls Dynamic Links From An XML File

May 23, 2011

I'll admit to being a newbie with JQuery, XML and Ajax. I'm trying to create a page which pulls dynamic links from an XML file. Here is the page: [URL] Here is the link to the xml file: [URL] I can get the url to pull as text, but I cannot make it into a link, no matter what I seem to try. I'm sure it's a syntax error - but I just don't know enough to know what it is. I'm also going to need to pull a URL for an image, and I am guessing that the process is similar.

View 2 Replies View Related

Page Refresh To Take The Effect Of The Dynamic Data Which Is Being Saved - Updated Or Deleted

May 19, 2009

I am using a javascript code to refresh a page.

<code>
window.location.href="";
</code>

this code refereshes the whole page and focus goes at the top of the page but I want the focus of the page at the same place where I perform refresh. Actually I am using AJAX to submit a form, a form opens through ajax request but I need to refresh the page to take the effect of the dynamic data, which is being saved,updated or deleted on the page. So is there any way where focus of the page remains there when I refreshed the page

View 9 Replies View Related

Create Dynamic Radio Button Which Can Edit Option In The Page By User

Aug 24, 2011

How to create dynamic radio button which can edit/add/remove option in the page by user.

If the option of radio button have prepared, I can write the script to show output in the page. But this can do like a said.

I have an example at this page phpform.org ,but I can't track the code.

View 1 Replies View Related

JQuery :: Not Refreshing Page - Form That A User Selects Item From Dynamic List

Mar 26, 2011

I have a search form that a user selects item from dynamic list hits the submit button and it returns each matchingresulton same page in an update form, i have 2 checkboxes in update form that updates the DB when 1 is checked, this all works fine until i check the checkbox the data updates ok but allremainingupdate forms are removed because the page refreshes.

So i need to update formstwith out page refreshing but i cant get it to work with multiple forms on same page.

View 2 Replies View Related

JQuery :: Populate A Dynamic Dropdown List Based On Another Dynamic Drop Down Selection?

Jun 29, 2010

how to populate a dropdown based on Another dropdown selection. This all should be a dynamic. Eg: I have two text boxes one is TechID and other is JOB ID. When I start typing Tech ID it suggests me the list of IDs which start with the input string i have put in Tech textbox. When i select the Tech ID the jobs associated to that Tech ID should be displayed in JOB ID text box as a dropdown list.

View 1 Replies View Related

A Nested Dynamic Checkbox Inside My Dynamic Form.

Jul 23, 2005

I am having a problem with the last results. I can't seem to be able to
get the input2A and input3A to appear. I don't seem to have a problem
with the show and hide after a number is entered and submitted. If
anyone can answer my problem I will be greatly appreciated with a
prize. I actually have submitted it more than once and I haven't had
anyone been able to answer it yet. Code:

View 5 Replies View Related







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