HTML - Make Href Read From Function Instead Of Data-url
Hi
I am trying to implement jQuery hovercard as specified he http://github.com/rrrene/tipsy.hovercard This code as an example uses data-url which specifies a html page that contains the html to use in the hovercard. But my site uses Smarty classes and so the images i want to show in my hovercard have already been found and the links loaded into variables. How do I turn this html Code: <a href="some.html" rel="hovercard" title="loading..." data-url="tip.html">Hovercard w/ AJAX Flavour</a> into a statement that reads from a bit script that can load using the variables already populated? I cant find anything on the web about data-url. Its all data:URL. Thanks Darren Similar TutorialsHey guys, I was wondering if anyone could help me? I wish to produce a website which works in the following way: The header and footer remain the same, and do not reload on page refresh. Then, links on a menu bar stimulate loading a new page, however only the content below the header changes. An example of this, is the CushyCMS website (http://www.cushycms.com). When you click the menu links, the header doesn't reload, only the page content does. How would I do this? My reason for wanting this method, is because I wish to have an image slider present within the header of all of my pages, and I don't wish to have to update every page each time I wish to add an image. Please help? Many thanks, Luke In my art page I have a series of thumbnail, when you clcik on them a javascript function is used to show them in fullsize next to all the thumbnails. However sometimes I want to link to my art page with a certain thumbnail expanded. How can I achieve this. This is what i have so far but its not working Code: <a href="art.html" onlcick="expandThumb("expandSrc")">thumb4</a> Thanks in advance Calypso hi, i have a form wich consist username and password. i want to read these content and store in the local system( my system) also i want to read the same thing from the file. can any one please send me the code for that. Many thanks in advance... Currently im wishing to be able to have a text form box that i cna write in and it goes somewhere(a database maybe?) and checks if its the correct ansewer, if it is, it goes to the new URL if its wrong it comes up with an error messege and then goes back to the previous page. How do i do this? Or at least START doing this? i am trying to make a html program in which theres a function which will take a single argument and then it will check the type of argument passed i.e whether it is an integer type or string or float and print the same.I tried making it and cud do it by using "on button click".but i am not getting how to to it without "button onclick".i just want to print the type of data passed without any button onclick. can anyone here help me with it.heres what i did: <html> <head> <script language="JavaScript"> function datatype() { } function check(arg) { document.write(typeof(arg)); } var data=new datatype(); </script> </head> <body> <input type="button" onclick="(data)" value="Object"> <input type="button" onclick="check(5)" value="Number"> <input type="button" onclick="check('Hello')" value="String"> </body> </html> please help me guys!!! im trying to find a html code that allows people download a pdf files from the website that im trying to make..anyone out there help me.. I'm trying to setup HREF (Hyperlinks) to go to UNC. The reason for this, is that I need to have users click a link on the page to install their printers, so any example of a UNC (that they could type into the run line) would be: \\PRINT-SERVER\PRINTER1 or \\Print-server\Printer2 But, when I type this in to my HREF statement, I get a permissions error when I try to click the link. However, if I copy that same link into the run line, it works. Can anyone help me here? Thanks very much in advance! Hello, I specified an if/else statement. Now, I would like to, in addition to "getting an element by Id", include an anchor (i.e., href="#span1"). below is what I have so far. where do I insert my reference to an anchor (i.e., href=...)? thanks! <SCRIPT language="JavaScript"> <!-- function getSet() { var r=Math.random(); if (r>0.5) {document.getElementById('set1').style.visibility='visible'; else {document.getElementById('set2').style.visibility='visible'; } //--> </SCRIPT> ok so i'm using a CMS and I have a page created a header, a left column, and a body I'm trying to have links in the left column display information in the body when clicked however since its a CMS the body doesn't have an actual html page? i've tried <a href="xxxxx.html" target="body">xxxxx</a> However it doesn't work I'm not sure how i'm supposed to be able to link to the body...is there a way that I can label the body? Hi, I have an html page with an image: <img src="aPic.bmp" width="300" height="340" alt="A Pic"></div></td> I've made it into a link by adding: <a href = "aPic.bmp"> What I would like is when the user clicks on the image it shows them a larger version of the same image. Is there an easy way to set the size of the image displayed when they click on the link similar to the width and height set for the initial bmp? Thanks in advance. Hello all I am having yet another (i know, i know...) issue with http://fishcaves.com , if you click the logo at the top left in safari it simply redirects you to the main page (fishcaves.com). However when I click the main logo in FF for some reason it pulls uphttp://fishcaves.com/fishcaves.com which obviously doesnt exist. I am confused because the href works like it is supposed to in safar but not FF. Not sure about IE. Any advice would be excellent, thanks. Drew Hi, new to list. I have a php page which has the results of a database query listed in 3 columns. One of the columns is a href with uses a name and code, opens up a form within an iframe and is supposed to use the list items in the form, however on one of them it only uses part of it - eg. <a href=http://<servername>/production/job_load.php/?code=$row[5]&job_name=$row[4] target=\"rpt_frame\">$row[4]<a> If $row[4] is "BOB and Fred" for example, it will only use "Bob" and ignore everything after the first space. It's an issue in several applications and I've had to work around it but I really need it this time. Everything else works fine. Any suggestions anyone? Hi: I'm trying to understand the following <a href> puzzle: <a href="#;return false;" onclick="answer('q11');"> lotsa stuff in here </a> In the above brief fragment of an html page (with Javascript), Can anyone provide a 'word' explanation of the following 'phrase' taken from the above: href="#;return false;" (what is that # sign doing there anyway) btw, there is a javascript function in the header of the page that is (I guess) directly related to this 'phrase' -- but I don't understand the relationship. TIA, -Mel Smith http://www.rrexecutivesuites.com/design_plans.htm This above link takes you to the website I'm working on. It also takes you to the page I'm having trouble with. You've got a list of thumbs in an iframe on the righthand side and an enlarged view of the thumb on the lefthand side. You click on one of the thumbs and its enlarged view appears on the lefthand side. There's something annoying about the thumbs though. When you click on one, it scrolls back up to the top. I'd prefer that nothing happens except that the enlarged view changes to match the thumb the user clicks on. Right now, I have href="#" in the a tag for each thumb, and this seems to bring it back to the top (its real functionality is specified in the onclick="..." attribute). I'd like to have nothing at all, but when I don't include a value for href, it ceases to be a link. Is there some value to assign to href that maintains it as a link yet keeps it from doing anything (except for changing the enlarged view) - something like a null value? I added this to my index file to create links Quote: <p> <a> href="mission.html">read about our mission</a> <br> <a> Read the <a> href="http://buzz.headfirstlabs.com">caffeine buzz</a> </p> but in the browser this is exactly what I am seeing: href="mission.html">read about our mission Read the href="http://buzz.headfirstlabs.com">caffeine buzz help? Hi, i have a problem with a intranet page that i am editing. I created it using quanta plus on my laptop testing with Firefox and it worked fine. I then moved the file to my network drive at my work place and tested with IE and again this worked fine. I then moved the file to the intranet webserver and this is when things started to go wrong. When i click on the the link to open the excel file for some reason IE adds the webserver to the path. eg when i hover over the link, the text at the bottom of the screen reads //webserver/file:R:/shares/file.xls. Of course this path is incorrect so the window fails to open. Has anyone come across this problem before and know how to fix this? See below for example code. Any help/advice greatly appreciated. Rgds Barry <a href="file:R:/shares/file.xls" target=_BLANK><big>Click Here<big></a> Total beginner here so please treate me gently... I have just written my 1st bit of html, using frameset and tables. All has worked ok, nothing grand, just 3 frames. Frame19(name="banner") is like an address banner, frame2("nav") is a navigation bar using a table and frame3("main") being like a main page which changes dependent on the navigation bar cell chosen. I've used href to navigate with which is working fine when only one action is required but I can't seem to get two actions to work, ie selecting in the navigation frame changes the other two frames. Have tried several variations of multiple href's but never get anywhere, expect it's syntax but stuck now. Ideally I want to select within the nav frame which then updates the banner and main frames, is this possible? bit of nav.htm I'm using: <tr> <td><font color="#000000" face="Calibri" size="3"><a href="Smain.htm" target="main">Scouts </a></font> </td> </tr> Thanks for any help Hi there, I`ve been doing some programming in java and delphi, but now its time for me to try to learn some html/css, and later some php. Anyways, I`m making this test site, where the meny consists of 4 text elements, all containing a href: <a href="foto.html" target="myFrame" id="menu_items">foto</a>; I`m using an external .css file to controll the graphics of the site, and there I have edited the a:visited, hover, active... When I click on one of the menu items, the color changes, as when I hover too. But I would like the first element of my menu, home, to be active when the page loads. How can I do this? Hope you understand my question. Thanks in advance! EDIT: Ok, there has to be an easy answer to this one, so maybe I just didn't explain my problem good enough. =) When I enter the page for the first time (after writing the adress in the adressbar and clicking "GO"), the page loads, and shows the "home" section. My page contains the site-logo, menu, and an iframe which shows the pages (home, foto, contact, and so on) as html files included in the site. As a default, it loads with the home.html in the iframe, and therefor the text "home" in the menu wont change color to the active color, which I set in the external .css file. But when I click on either of the menu items now, after loading the page, it changes color and works fine. What I want, is to set the "home" text in the meny to the active color (or in the active state) when the page is loaded. Sorry for any bad english, doing my best. And again, thanks I am using the a-href tag on text and images for links to other pages. All is good and working. With text, if the text I link is coloured, with the h-ref tag, regardless of text colour, it becomes blue, and when clicked, purple. I know this is normal behaviour usually, however, I have a title which I would like to be clickable, but remain the colour it is. Is there an attribute I have missed? My history: I am an electrician who likes tinkering with code. I have done a fair amount of tinkering and creation of perl coding. HTML is fairly natural to me, but may not be xhtml current. Google is the god. Cheers all or anyone for any pointers, or links to tuition siteS! I have a link that handles being clicked with javascript. Currently I am doing the following: <a href="#" id="foo"> click me </a> And I handle the event of when foo is clicked in javascript. Ideally I would like it not to show the fake hyperlink when hovering over the link. Is there a better way to do what I am trying to accomplish? I want to keep the mouse icon changing when hovering over the link. Thanks, Mike |