html

How do I get the page source of the html page using php codes?

How do I get the page source of the html page using php codes and then save all all of those codes into a database? Is it possible? Please help. Thanks. Database is MySQL ...

Having trouble with my menu on mac Safari. Works fine on Windows Safari.

http://wilwaldon.com/itsbroken/stay.html If you could take a look and tell me if it works in Safari that would be awesome. A screenshot would help if you find a bug. According to Adobe Browser Lab it looks fine, but according to my friend with a mac it's all sorts of messed up (the second tier's messed up, the vertical lines after the l...

What's the opposite of a nbsp?

A &nbsp; character is a space which doesn't allow for line breaking. <p>lorem ipsum here&nbsp;are&nbsp;some&nbsp;words and so on</p> | lorem ipsum | | here are some words and so | | on | What's the opposite of that? That is, a character which is NOT rendered as a space, but CAN be used for line ...

My SWF event listeners and socket connections don't work in my browsers

I'm running Flash cs3 for Mac and publishing my SWF's and HTML using Flash Player 10. I'm running Mac FireFox 3.5 browser. While my SWF exports and runs fine in Flash IDE, when I publish the file and run (either the SWF or the HTML with embedded SWF) in browser, it doesn't work properly. My movieclips don't respond to mouse clicks. T...

How to check if a div has element innerHTML

I have a div, which contains n number of child nodes. I have a for loop: for (iloop = 0; iloop < summaryDiv.childNodes.length; iloop++) { if (summaryDiv.childNodes[iloop].innerHTML.contains('display:block')) { flag = false; } } Here some of the child nodes don't contain the element innerHTML. I need to check if the chi...

jQuery Drop down disappears when hovering over text (IE6/7 only)

EDIT: I've voted to close this as I was never able to determine the exact cause of the issue and the test links below no longer exhibit the issue since changing to use the Superfish menu. I'm using this simple jQuery drop down menu on a small site but I'm having an issue where the menu disappears only when the mouse hovers over text in ...

newbie question about anchor tag

Say I have this line in my aspx file <li> <a href="../products/handout.pdf" target="_blank"> Desktop and Laptop Installations </a> </li> My problem is that the pdf file is opened by IE , How can I force it to open in Adobe Acrobat ( the associated app basically ) is this doable at all or is this decided by IE and the...

html DOM generation and html regeneration out of DOM

Hi I want to get the html content of an html file and modify some areas (actually I want to translate the text in the html page )and then REBUILD the new html file out of my modified DOM tree.Can anybody please show me the way how I can do that ?I have found html DOM parsers,but they dont regenerate the modified html file for me .they ...

Do meta refresh tags "break" PHP sessions?

Hi, I am using session variables to store user display settings while their session is active. For example, if I choose to display 5 items on the page with session variables then there is no problem. I can manually (f5) refresh the page and still see 5 items on the page. However, upon implementing the following meta tag to auto-refresh,...

Connecting to remote hosts in an HTML/Javascript web app

I've been thinking of developing a web application using HTML and JavaScript for a little while now, but I've hit a wall during my ponderings. I want to be able to connect (long-term, not briefly) to a remote host with this app, one which is unfortunately not the server that the page was requested from. From what I've read, JavaScript c...

Syntax vs Element vs Tag vs attributes vs property vs selector?

Can anyone give me deatails on each? for example? Is #ID an attribute or property or selector or anchor? Is default property and default attributes are different thing? Are all these Tags or elements? What we will say to this <img src="angry.gif" alt="Angry face" title="Angry face" /> This <div>.....</div> and these <br /> ...

How to pass part of url in new link? Using only HTML & PHP

Hi all, I have been trying to attempt to use the facebook share function in my website but i cant seems to have the right result. Say: i have a page called http://www.xxx.com/product.php?prod=lpd026n&amp;cat=43 and i am using facebook's share function to have visitors to share the page in the FB wall. i tried writing the link this wa...

How to ignore html tags in Sql Server 2008 Full Text Search

Hi, I'm working on a knowledge base project using SQL Server 2008 Full Text Search Engine. Project included in articles and files where each article has multiple files.In those articles whole content is pure html. Right now,I successfully created fulltext catalog and index on SQL Server 2008 and my database is version 10 compatible. H...

Safari Display Problem

the page http://wespeakforfreedom.com doesn't seem to display correctly on safari (so I have been told, I do not have Safari to test), the thing I find odd is that it displays fine on other webkit based browsers. From what has been described to me it sounds like a padding issue - any one have any ideas? ...

Click (mousedown) event of a select element

I have an empty select element, I want to execute some code when that element is clicked on, but I do not want the dropdown list to appear, here is what I have found: When I disabled the select element I cannot catch the mousedown event. When I enable the select element I can capture the mousedown event but the dropdown list appears. ...

Center floating divs inside of absolute positioned div

I have this set of html and css. What I want is to have to have the small gadgets blocks float left but to centered inside of the absolute positioned gadget-wrapper. So, the gadget wrapper is absolute positioned to the bottom of a page. It holds x number of gadgets that floats left inside of the wrapper. All these gadget should be cen...

in which situations use of positioning would be a better option than float?

How positioning can save our time if we use in place of float on some place in layout coding? How we can judge where positioning would give better result? For example (i added just for example) if this is a design So far i only use float + margin + padding, now if i can mix positioning and save time and get pixel perfection easily th...

Form inside hidden div is still displaying in Firefox

The form within the div is supposed to be hidden, but it isn't in FireFox. In Safari it is fine. <div id="add_task" style="display:none;"> <form id="add_task_form"> <input type="submit"> </form> </div> Any ideas? ...

add dynamic html table to ASP form

Hi! i created a dynamic table with HtmlTable, HtmlTableRow and HtmlTableCell. finally i've added it to the form with Form.Controls.Add(thisHtmlTable); but the table was added in the wrong place... `<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">` `<form id="formPort">` <!--this is the plac...

Google Chrome window.open height includes URL bar

When we open a window using: window.open("/calendar",'calendar','width=950,height=576,titlebar=no,statusbar=no,menubar=no,resizable=no,scrollbars=no'); Firefox 3 and IE 7 open it to have a content area height of 576 plus the browser items (URL bar, status bar, etc). Chrome however opens it to have a total height of 576 meaning a scro...