HTML - Xml Data Island Help
how do i put HTML URL links in XML DATA ISLAND?
from what i know you can only put text in XML data island. example Code: <data>Here is some data here</data> and in the tables... Code: <td width="200"><div xmldi="xmlDI" xmlnode="data"></div></font> but my clients wants to put html links in the <data> tag , how can it be done , eg Code: <data> <a href="music.html">Music here</a> </data> when he tried to do this , the whole page turns blank. please enlighten. thanks pros. Similar TutorialsHi, I am writing a html web page to retrieve the xml content into three tables using xml data island. There are 3 xml files: <xml id="file1" src="xxx.xml"></xml> <xml id="file2" src="yyy.xml"></xml> <xml id="file3" src="zzz.xml"></xml> In the html file, I would like to let the page refresh automatically and retrieve the xml contents because the xml file contents might keep changing all the time. I've tried to use meta refresh tag to do this. However, it seems that the xml content is cached and it displays the old content even if the xml file content is changed. How can I solve this? Hi pros , please help me out. I did a xml data in the <body> section , where my client can edit the <body> section's description tags to edit the html files without going digging through all the codes hidden in the tables. It works in Mozilla Firefox, but this code appear to be Blank in Internet Explorer , please help. My code in the <head> section: HTML Code: <body> <xml id="xmlDI"> <description> <b>Photo Gallery</b> <br> <br> A collection of artistes' photos<br><br> </description> <description> <b>Video Gallery</b> <br> <br> A collection of artistes' videos<br><br> </description> </body> and the codes in the tables below. HTML Code: <tr> <td width="200"><font color="#e9e9e9"><div xmldi="xmlDI" xmlnode="description"></div></font><u><a href="photos.html"><font color="#e9e9e9">Click here to enter</font></a></u> </td> ANYONE? please help me out. tons of sleepless nights , but cant make it work. Hi there, I'm trying to use XML to pull the news for an IE-only intranet. In this line: <TD bgcolor="#FFFFFF"><a href="DATAFLD="url"><DIV DATAFLD="title"></DIV></a></TD> You'll see I'm trying to fill the HREF=" " tag with the url from the data fld - however it doesn't seem to work... Does anyone know what I'm doing wrong? <HTML> <HEAD> <TITLE>Data Island (XML DSO) Example 1: (Binding to Table HTML Element)</TITLE> </HEAD> <BODY> <XML ID="NewsWebSites"> <ROOT> <Site> <date>2nd Feb</date> <title>Message from Peter</title> <url>http://www.bbc.co.uk</url> </Site> <Site> <date>9th Feb</date> <title>Restructure announcement</title> <url>http://www.bbc.co.uk</url> </Site> </ROOT> </XML> <TABLE DATASRC="#NewsWebSites" BORDER="0" CELLPADDING="3" CELLSPACING="1" BGCOLOR="#EEEEEE"> <THEAD> <TD>Date</TD> <TD>Message</TD> </THEAD> <TR> <TD bgcolor="#FFFFFF"><DIV DATAFLD="date"></DIV></TD> <TD bgcolor="#FFFFFF"><a href="DATAFLD="url"><DIV DATAFLD="title"></DIV></a></TD> </TR> </TABLE> </BODY> </HTML> Ok here's the low-down - I'm trying to find a better way to post news items on a large intranet - currently we have to post the same news on twenty different servers, which drives me barmy. The big issues are we can only get client-side access (no asp, php etc) although on the upside all the users are IE6 - so in a way some things like data islands become available. So I was thinking we could have a central xml file that we could update and each page would be set to show certain categories or something. first of all is this possible at all?! And if so - any help/pointers would be appreciated! You'll see below where I've got to - so it's displaying the first news item dynamically so I guess there's two questions - one hopefully fairly easy and the second for a resident-genius type: 1) How can I get it to display the 'first five records' rather than just the first one - I know you can fudge it with tables, but I'm trying to keep it as proper as possible and I know tables aren't really the best for this sort of thing. 2) Is there any way I can add 'markers' to the xml file that are checked - ie so the xml file could have items like: <item> <title> The title of this article</title> <markers> <political>Yes</political> <sport>No</sport> <technology>Yes</technology> </markers> <content>blah blah</content> </item> This'd then let me specify an article as both political and technology and thus on the political and technology pages it'd appear if it was one of the five most recent valid articles, but not on the sport pages. Any ideas?! Code below if it helps... Page: Code: <html> <head> </head> <body> <div> <div>All News</div> <ul> <li><span dataSrc="#news" dataFld="title"></span></li> <li>News 2</li> <li>News 3</li> <li>News 4</li> <li>News 5</li> </ul> </div> <div> <div>Retail News</div> <ul> <li>News 1</li> <li>News 2</li> <li>News 3</li> <li>News 4</li> <li>News 5</li> </ul> </div> <xml id="news" src="news.xml"></xml> </body> </html> XML file: Code: <?xml version="1.0"?> <news> <newsitem> <title>General News 1</title> <intro>intro for the general news</intro> <link>http://www.bbc.co.uk</link> </newsitem> <newsitem> <title>General News 2</title> <intro>intro for the general news</intro> <link>http://www.bbc.co.uk</link> </newsitem> <newsitem> <title>General News 3</title> <intro>intro for the general news</intro> <link>http://www.bbc.co.uk</link> </newsitem> <newsitem> <title>General News 4</title> <intro>intro for the general news</intro> <link>http://www.bbc.co.uk</link> </newsitem> <newsitem> <title>General News 5</title> <intro>intro for the general news</intro> <link>http://www.bbc.co.uk</link> </newsitem> <newsitem> <title>General News 6</title> <intro>intro for the general news</intro> <link>http://www.bbc.co.uk</link> </newsitem> <newsitem> <title>General News 7</title> <intro>intro for the general news</intro> <link>http://www.bbc.co.uk</link> </newsitem> </news> Hi Experts, I am designing a webpage where based on the year selection the associated years webtable needs to be displayed in the webpage. Pls give som suggestions and if possible the code on to how to code this using HTML and Jav Script. I know I have to write afunction and then call the fn based on the input.but need your help on this. Thanks, Bsquare So I've got a form with some input text. In addition to the data in the input text I want to send some other data that has already been predetermined on initial page load. How would I declare the other data within the form element? Thanks Hi everybody! I have a jsp page with a form and a table. My aim is that when i press the submit button of the form,collect the data and fill the table with it. I am working with J2EE. I have already collected the data in a Java class,but I dont know how to introduce this data into the table. Best Regards! I have been using my site for some time now and it carries the image name over when you clicked on purchasing the print. It carries it still, but when you submit the form, the image name isnt there and the form errors because the field is blank. Here is the site: www.sthompsonphoto.com I cant seem to figure out why it disappears when you click Submit? Any help would be great! I have a page here that add rows with 3 textbox after pressing the button. The added textbox have all unique name. My question is how can I access the data on the added textbox in the next page if I don't know how many rows will be added? <script language="javascript"> function addRow(){ var newRow = document.getElementById("mytable").insertRow(document.getElementById("mytable").rows.length); var num = ((document.getElementById("mytable").rows.length - 1) * 3) - 1; //add 3 cells (<td>) to the new row and set the innerHTML to contain text boxes var oCell = newRow.insertCell(0); oCell.height = '25'; oCell.vAlign = 'middle'; oCell.align = 'center'; oCell.style.background = '#EEEEEE'; oCell.innerHTML = "<input type='text' name='textfield"+(num)+"' class='bodytext' size='20' align='center'>"; oCell = newRow.insertCell(1); oCell.height = '25'; oCell.vAlign = 'middle'; oCell.align = 'center'; oCell.style.background = '#EEEEEE'; oCell.innerHTML = "<input type='text' name='textfield"+(num + 1)+"' class='bodytext' size='35' align='center'>"; oCell = newRow.insertCell(2); oCell.height = '25'; oCell.vAlign = 'middle'; oCell.align = 'center'; oCell.style.background = '#EEEEEE'; oCell.innerHTML = "<input type='text' name='textfield"+(num + 2)+"' class='bodytext' size='3' align='center'>"; } </script> <table width="100%" border="0" cellpadding="4" cellspacing="1" class="bodytext" id="mytable"> <tr> <td height="25" align="center" valign="middle" bgcolor="#dddddd" class="bodybold">Part #</td> <td height="25" align="center" valign="middle" bgcolor="#dddddd" class="bodybold">Description</td> <td height="25" align="center" valign="middle" bgcolor="#dddddd" class="bodybold">Qty</td> </tr> <tr> <td height="25" align="center" valign="middle" bgcolor="#EEEEEE"><input name="textfield2" type="text" class="bodytext" size="20" ></td> <td height="25" align="center" valign="middle" bgcolor="#EEEEEE"><input name="textfield3" type="text" class="bodytext" size="35"></td> <td height="25" align="center" valign="middle" bgcolor="#EEEEEE"><input name="textfield4" type="text" class="bodytext" size="3"></td> </tr> <tr> <td height="25" align="center" valign="middle" bgcolor="#EEEEEE"><input name="textfield5" type="text" class="bodytext" size="20"></td> <td height="25" align="center" valign="middle" bgcolor="#EEEEEE"><input name="textfield6" type="text" class="bodytext" size="35"></td> <td height="25" align="center" valign="middle" bgcolor="#EEEEEE"><input name="textfield7" type="text" class="bodytext" size="3"></td> </tr> <tr> <td height="25" align="center" valign="middle" bgcolor="#EEEEEE"><input name="textfield8" type="text" class="bodytext" size="20"></td> <td height="25" align="center" valign="middle" bgcolor="#EEEEEE"><input name="textfield9" type="text" class="bodytext" size="35"></td> <td height="25" align="center" valign="middle" bgcolor="#EEEEEE"><input name="textfield10" type="text" class="bodytext" size="3"></td> </tr> </table> <a href="javascript:addRow();" >Add Order</a> Hello all, Can someone helps me with the following idea: I've a page with input boxes on it,and beside each input box there is a link that will display a small help text, and that help text will be extracted from the xml file according to the id of the text box, so , I need more help on that , How could i extract data in HTML page from an xml page? Thanks Hi there! I've been googleing for this for a while now, but I couldn't find any solution. My problem is simple. I want my forms to be in a way that browsers 'know' that the data being typed into the form is to be sent with the Unicode UTF-8 encoding. So that every data POSTed back to my server is encoded using UTF-8. How can I do that? Thanks in advance, AvoC. I use Expression Web 3 and would like to know how to collect and save data entered on a screen. Code sample? Hi everyone I'm currently told to design a html page that updates live(Constantly changing) data, I wonder if it is possible through html coding. Lets say the data updates every 2 seconds, as in the page changes the data without me manually refreshing the page. Is it even possible in the first place? Sorry, but I'm kinda new to html code writing and all. Sorry haha. Hello all! I've been lurking in these forums for a good while as I've recently started dabbling in web design. As such, I find myself stumped. Despite my relatively thorough search on Google I've yet to find anything that points me in the right direction. I assume I'm simply not using the right terminology in my searches. Hopefully the community here can help me out. In short I have a chat applet that I'm trying to get a "Report Member" function working in. Users can right click on a member and select "Report Member". From there I have a page on my site called Report.htm and that particular URL. The chat applet provides information on the end of that URL. Here is an example URL: Code: http://www.siteurl.com/report.htm?username=JohnDoe&roomname=Main+Room&showuser=2264826&uid=2264826&srcuid=2264826&srcusername=JaneDoe Essentially, JaneDoe is reporting JohnDoe for who knows what. When the report is made they're sent to the placeholder report page with all the details at the end of the URL. If possible, I'd like the Report.htm page to have a form in it where the information for the form is prefilled (and uneditable) from the information provided by the URL. Essentially the form would roughly look like the following: Username of Member: JohnDoe Your Username: JaneDoe Room: Main Room Report: (This would be the only editable section) After filling out the report they'd hit submit and it'd get emailed to the moderating staff. Is this something handled on the server side of things? If so I've potentially posted this in the wrong subforum, but I assumed it was something that could be done via form tags in HTML (though I do know some script would be needed for the actual submission of the form). My server uses PHP, if that information is useful. With all that said, is this possible? If so, what can help get me started in learning how to do this? I've spent a good deal of time looking around on Google but nothing seems to be quite what I want or, more likely, I'm simply not using the right search terms. Any help would be greatly appreciated! Hi, I am new to this forum. As all other, I have registered because I need help: I am currently working on an automatic news system (if you can call that...), where I write my news story in an .ini file. What I need help with is that I want my page to get the string from the .ini file and "publish" it. If there's an easier/alternative method, please post ~Mikkelet Hi guys, just a quick question regarding meta-data and metatags. After a recent overhaul of our google adwords campaign its come to light new search options inside of adwords regarding things like; search - broad search [search] - exact match "search" - phrase match -search - exluding search etc... Are meta-tags sensitive to this, and if so would this have an effect on search engine visability levels... now I already know some search engines do not use Meta-data... but for the others that do, it's most likely worth doing... Any help is much apprciated. Ben So I'm using CSS and the same header is used on every page. It includes all meta info, nav bar, company logo, etc. I read at the SEO opt sites that Meta data should be specific for each page to improve SEO (search engine optimization - google ratings). Those two seem to be at odds with each other: CSS good, but use different META info for every page. for example this is my code for an average page: Code: <?php require 'head01.html'; // call HTML headers, same for all require 'center11.html'; // call center code - another page require 'footer01.html'; // call footer code - same for all ?> CenterXX differs for every page but not Header01.html which has my META data. help. kc How do you extract the efix data from a jpg file and include it on a web page so the date and time a plhotograph is taken can be displayed. Here is an example--http://www.onthesnow.com/CO/482/cam3.html I am new to html programming so i am just wondering if this is at all possible to do in HTML i know in Visual Basic programming you could validate the data the user enters in text fields like IsNumeric etc. to make sure the user only entered in numeric for certain fields. I want to know if there is a way i can do this in HTML I have seen some example of people using JavaScript to do this type of data validation but i am wondering if there is a way to do it without the help of javascript ??? How can find what string has been submitted from the HTML form when i click on submit button? |