html

changing a node type to #text whilst keeping the innernodes with the HtmlAgilityPack

I'm using the HtmlAgilityPack to parse an XML file that I'm converting to HTML. Some of the nodes will be converted to an HTML equivalent. The others that are unnecessary I need to remove while maintaining the contents. I tried converting it to a #text node with no luck. Here's my code: private HtmlNode ConvertElementsPerDatabase(Ht...

Getting title attribute with jQuery

Hello assume that I have this list: <ul id="carousel"> <li><a title="hey"><img src="image.png"/></a></li> </div> And now my jQuery script: $(function() { $("#carousel a").click(function(){ var url = $(this).attr('title'); alert(url); }); }); This doesn't work, it works for other attributes such as "alt...

HTML forms - input type submit problem with action=URL when URL contains index.aspx....

I have a HTML form that truncates the action parameter after the "?" mark - which is NOT the desired behavior I am looking for. Here is a representative HTML snippet: <form action="http://spufalcons.com/index.aspx?tab=gymnastics&amp;path=gym"&gt; <input type="submit" value="SPU Gymnastics"/> </form> In this case, the submit butto...

How can I make a footer's height expand to take up the remainder of the screen?

I'm looking to do something like: Where I have a footer at the bottom of the page which has a height that expands to take up the remainder of the screen. Is it possible to do this in CSS? ...

How can I get my own cursor coordinates in Firefox?

I'm currently designing a website and just realized it would help me a lot if I would know my own cursor coordinates. I mostly use Firefox for previewing the new page. So an add-on for Firefox would be great. I checked out Firebug, but didn't find the feature there. Does anyone know how to show the current cursor coordinates in Firefo...

how can I launch/pass a value to a Windows C# application from a web page? (it seems possible with song links to iTunes)???

Hi, I'm putting together a C# winforms application, and it would be good to be able to have the ability for someone to click on a webpage link that automatically maximizes my c# application and passes some data to it. Pretty much like I see some webpages have a song link that automatically opens iTunes, and then in iTunes it searches f...

How do toolbars like the Meebo Bar work?

Meebo's new 'bar' service puts a floating bar with links and chat functions at the bottom of any given webpage with just a dash of Javascript and HTML. I'd like to build something like it, but I'm flummoxed as to how they got around the same origin issues. It looks like they're injecting an iframe and some script tags, but how they acco...

Proper way to center pop window with Javascript and pass html

Goal: quick and dirty app (client side only) to grab some arguments from one page and put results onto a new page, which can be printed and then closed. Arguments on the original page then can be changed and new page popped. Used this as a starting point: https://developer.mozilla.org/en/DOM/window.open http://www.yourhtmlsource.com/jav...

Turn off enclosing <p> tags in CKEditor 3.0

Is there a possibility to turn off the automatic enclosing of all written content within <p></p> in CKEditor 3.x? I tried CKEDITOR.config.enterMode = CKEDITOR.ENTER_BR; but this just changes the inline linebreaks to <br /> while leaving the enclosing paragraph. Currently writing "Test" produces this output <p> Test</p> but...

Remote domain load browser restriction

Hi, You know the browser restrictions which disallow remote domain load, ie making this not work: $("#verizon").load("http://verizon.domain.net/?var=rscms&amp;tan=0.9"); Is there any way around that? I'd rather not have to iframe the content ...

Image isn't reflecting its properties

http://grab.by/1rI8 I wrote some jQuery script so that the background image will always scale and will never show a blank spot. function runIt() { currentHeight = $("#bg").height() //useless for you currentWidth = $("#bg").width() //useless for you ccurrentHeight = $("#cover").height() //useless for you ccurrentWidth = $("#cover")....

Fixed size div?

I want a normal div for the body of my text and a bunch of little divs that are exactly 150px by 150px. How might i do this? ...

How to restrict file types with HTML input file type?

How do I restrict file types with the HTML input file type? I have this <input type="file" id="fileUpload" name="fileUpload" size="23" accept="Calendar/ics"/> I am trying to restrict the type to only the iCalendar format type. I also want to check it on the server side. How do I do this in ASP.NET MVC? ...

How do you make those newfangled pop-up windows?

How do you make those newfangled pop-up windows, the Web 2.0 kind, like when a site wants you to take a survey or donate money? And more importantly, what are they called? ...

nothing showing in input box in IE if we type anything?

see Name and Email input boxes in header see here ...

How to get AJAX generated HTML text?

AJAX is a very powerful tool so I am struggling with it :-). Is there any way or API(in java) so that I can get the HTML code which is generated by AJAX? Generally, AJAX make use of inner HTML code and hence this inner HTML code is missing when I look into the page source of a page. e.g click here Just see the section OTHER NEWS....

Radio Button Selection

Hi All, I want to show few text fields on click of a radio button ,how can i do it? without JavaScript or AJAX. ...

is it possible to have double nested input tag arrays in html?

I'm wondering before I attempt to refactor my page if its possible to have a double nested input array in html. I have an 8X5 group of elements in a form and it would be nice for me to be able to parse it using an array of arrays...something like <input type="text" name="list[][]" /><input type="checkbox" name="list[][]" /> and s...

How to post multiple <input type="checkbox" /> as array in PHP?

So that in PHP I can deal with them as : foreach($_POST['checkboxname'] as $i => $value) ... ...

How to show html text in BlackBerry?

Hi, all. Is there any way to show LOCAL html string in my BB application? For example: I have a string "<b>text-text-text</b> <A href="http://stackoverflow.com"&gt;link&lt;/A&gt;" How can I parse and show it as text-text-text link? Thanks. ...