You know when you have a menu on a page, and have.. let's say.. a 100 other pages.
Say the menu is like this:
Now: you want to add a page to this menu. Instead of adding a page to every single menu, could you have (earlier) edited in this:
Or wouldn't this work?
I asked about how to do this in another place once, and got a reply about using 'PHP inputs', but I'm using tutorials for JavaScript now, and it seems like this would do it. Would it work?
I want users to specify external sites, a) include them, and let b) users annotate certain paragraphs of text.
a)
As this sites are external (not on the same domain) I cannot use iframes since I cannot select text then, as I understood, right? So I need to create a proxy page which integrates them in the local domain. If this works, I guess the problem are relative urls - does anyone know a good way to correct these? Furthermore, do I need an iframe, or is there another way?
b)
I would like users to be able to select text paragraphs and add a description. Ideally I would get XPath for the selection. Is there a tool/plugin to do this? Like select some text and get the XPath for it?
I am a novice/moderate html programmer and I wonder how to tell the browser from which start point and to which end point in the text will each page be printed.
In other words, I have a single html text that contains different informations that are displayed alltogether in the same browser. When I print this page, the browser should put each different subject in a separate page and not having it all mixed up. Is it possible? How should i do it?
var el = document.createElement("iframe"); el.setAttribute('id', 'ifrm'); document.body.appendChild(el); el.setAttribute('height', 250);
[Code].....
And am putting it between <script type="text/javascript"> and </script> tags in the <body> section of my site. But, it only works in certain areas of the page.
I'm working on a slideshowish type thing using jqm & player, and I'm having trouble solving what seems like it should be a simple problem. I'm using virtual pages, and a javascript object as a script to build the pages programmatically -
[Code]...
If I'm correct that there is no way to get i+1 inside of an $each(collection, function (i, item){} through i + 1 (well, I know that doesn't work - if i is "T1" then i+1=T11), or i.next or something, is there an elegant way to get the next iterator? Something like i.parent.nextChild or something? Should this be in the getting started forum?
I was experimenting and I figured out a fun and cool way to two pages together by going back one page in history. The codes can be found here (MUST be named page_one and page_two and be placed in same folder/directory)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
<html> <head> <title>Home</title> </head> <body>
<div align="center"> <font color="black" face="verdana" size="2"><b> You are at home. If you want to go to school, go <a style ="text-decoration:underline;color:#000000;size:2" href="page_two.html"> here </b></font> </a> </div>
</body> </html>
...And page two..
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <title>School</title> <script type="text/javascript"> <!-- function question() { if(confirm("If you are homesick click OK. If not click Cancel")) { history.go(-1); } else { alert("Not homesick? Stay here then") } } //--> </script> </head>
<body> <div align="center"> <font face="verdana" color="black" size="2"><b> Your at school. Are you homesick? If so, go <a style ="text-decoration:underline;color:#000000; "href="#" onclick="question();"> here </a> </b></font> </div> </body> </html>
When i visit a majority of the pages on Dic i receive the following javascript error:
Webpage error details:
Message:
I am using IE 8 with nothing disabled. The browser also goes into compatabilty mode every time this error happens. The screen will go competely white and i will have to do a refresh to get anything to show up.
i have two pages titled: abc.html and program.html. in "abc.html", i have an image and a submit button. the image is a link that when clicked takes us to "program.html" page in program.html, i have a form with select tag and some options. i have a function (say choose()) that displays the results as a new window.
now i want this choose() function to be executed only when the user clicks on the submit button in the page abc.html. how should i proceed? the sequence of program execution is as:
1) the user is first displayed with the page, abc.html having an image and a submit button 2) he clicks on the image present in this page and is taken to the page "program.html" 3) in program.html page, he has a form with select tag 4) the user just chooses his option and then clicks on a back button and returns to abc.html 5) here he clicks on the submit button and a window that displays the options he has selected is to be displayed.
On my main page, i m having a link for a page which lets user to upload files to a server.
On the main page itself, i am also taking some other information from the user. Then i am mailing that data to some other user. The problem is, i want to email the name of the file that is uploaded by a user along with the other details. I am able to send all the details which are entered on the main page, but how do i send the file name which i am uploading to the server from a different page?
I have created a form with 4 textboxes and one listbox. What I want to do is for every record which i select from the list to populate the boxes with information from a MySql database. I have managed to do this for one textbox, but i have a problem when doing the same for more then one textbox (DIV). Below is the code I am using to identify the div and write the info in the right place, for only one text box.
THE FORM
THE AJAX FUNCTION
What should i do to transfer the DIV NetMask along?
Adsense wont load on the pages that are loaded within the divs. If you go to the above site, you will see the index page loads a banner fine. But if you click on one of the job links in the middle div, it loads the jobs details to the right. There you can see where the adsense block should be, yet it doesnt load.
I've searched all over for AJAX Adsense combo, most people talk about iframes, but without any content in the iframe it would violate adsense TOC. Most of the discussions are dated back at 2009 or prior.
So, One my homepage I have a page that number if it exists in the database if not it goes to a feedback page.how can I copy that number from homepage into the feedback page.on my feedback page it has an input for the number and email.Is there a jQuery solutions or normal javascript would be fine .
I want the pages in my website to go only forward and disable going backward, I mean the user can not go back to the previews page in some pages and I've been told that i can do that using javascript but I don't know how or using what.
I don't know if this is the right place to post this question but I think javascript might offer a solution. I have a 125 X 156 jpeg image with some text underneath in the right column of my home (.html) page and the same image and text in the right column of 47 other (.html) pages. When I alter the image and text in my home page I don't want to do the same 47 other times. How can I alter the image and text once and the alteration is reflected in all pages.
If anyone has gone to facebook.com and logged in, you will notice there is a little bar at the bottom of your screen. Whenever you navigate through Facebook, the main page reloads, url changes, all of that (So no iframe). But that bottom bar never changes. It is always there and never gets reloaded (You can test this by highlighting the bar and then navigating through pages)