html

Is there a cross-browser css way to decorate only last word in a span block?

I need to show user's list which should look like in the example below: Helen Burns Edward Fairfax Rochester Bertha Antoinetta Mason Adèle Varens Is there a way to achieve this without using javascript? Each row should be one span, i.e. <span>Helen</span><span>Burns</span> is not acceptable. ...

Network tab in Firebug doesn't show any files.

I'm creating a html-layout based on an existing layout. I want to extract all the files, that are currently actually being used, from the old layout, since there is a lot of crap in the directories that's been there from the ancient times or something. So I tried to open the existing layout in Firefox and use Firebug to see which files ...

ckeditor slow firefox

Hi people I have a ckeditor who is very (VERY) slow. Does anybody has this problem with a modest amount of html (just 16kb of data!!) I understand that an editor will get slow with 5mb of data but just 16kb is not so good. Does anybody have the same problems i am facing ? It is by the way not a particular browser issue i have tested...

Javascript switch case

Hi guys, my Javascript switch case isn't working for some reason, and I can't figure it out, I am trying to display a certain input only of a certain option is chosen, function showHideSchools(obj){ var curSel=obj.options[obj.selectedIndex].value switch(curSel) { case '0-2': document.getElementById('schools').st...

How does Analytics and Usability software do this?!

Hi folks, I have been using analytics software for a while, and I've been asking myself how can such software copy a webpage completely to then place it in an iframe and overlay it with images and info. An example: A major problem I encountered is copying the webpage. In particular, copying the webpage the user is currently viewi...

Auto add Lat / lng to form field using google maps

Hey guys, I've got a html / php form which will add values to a a database. I'd like to implemented Google maps so that when a user clicks on a location on the map it will automatically add the latitude and longitude of the location which they clicked at to 2 fields on the HTML form (the Latitude and Longitude fields). How would I do th...

XmlNodes stripping out HTML

Got some html with javascript in, the javascript creates an MSXml2 object and loads some XML from a file, and populates a span. However the HTML that's within the XML is being stripped. Is there a way to stop it from doing this? (pseudocode) I've tried various combinations of mySpan = blah.GetNode("mynode").text , .value, .innerxml etc....

Image Address (URL) Not Available when Setting src to local file in windows server2008 R2 64

hello All I am having a problem when setting image src to local file when running the Application under windows 2008R2 64. the Application is running normally on 2008,Xp,win7 but when running the Application under 2008R2 64 no image is Displayed checking the source of the Page in IE and Chrome I can See the SCR point to the Correct...

Form with file input field wierdness

Ok. I'm probably just to tired to spot an issue here. The problem is when I submit this form, the attached file does not get submitted. $_FILES array in PHP is always empty. Here is HTML form: <form enctype="multipart/form-data" method="post" action="navigator.php?kam=editovatElearningKurz&id=-13"> <dl> <dt> <label for="docume...

issue when dragging an image using javascript (jQuery)

Hi all, I am trying to create a draggable div with an image. I could drag a div with some text, but whenever I replace the text with an image dragging not working fine. Please check this link, If you replace the image with text, it will be able to drag the text on the window,but it wont work if we replace the text with an image as it is...

Making a GET call before leaving page - Javascript

Hi folks, performing a GET in order to send data to an API before a user leaves the page can be seen as a performance issue. Is there an alternative or a way a developer can optimize the client side javascript? One of the great examples is: Google Analytics! ...

superfish drop-down menu displaying underneath div below it

Example of what it is doing: http://screenr.com/k2X I set the z-index of div class="container_12 header" to 2 and the div class="container_12 content" to 1 the ul class="sf-menu" is set to 99, which is within the container_12 header div I've had this problem before and thought setting the z-index's appropriately for classes would do t...

Google maps, on click not adding lat/lng to form.

Hey, Just a follow up from a previous question. I've got the following form.. <body onload="initialize()" onunload="GUnload()"> <form action="welcome.php" method="post"> Name: <input type="text" name="fname" /><br/> <br/>Description: <BR> <TEXTAREA NAME="description" COLS=40 ROWS=6></TEXTAREA><br/> <div i...

Facebook Tab not loading

so i created a facebook app (fbml). canvas url = http://mydomain.com/fb/canvas/ tab url = tab.html i authenticated my app with my profile and added the tab to my profile. but the tab keeps loading and loading. sometimes i also get redirected to my profile page after a short tab loading time trying to access my canvas page http://a...

calculate text for a height, paginate the content

HI I am trying to paginate the content of UIWebview so i disabled the scroll then the second page will the current view height. The problem is sometimes the last line of page gets clipped so the first line of the next page too.I want a solution for this situation, if it occurs,it should left the line for the next page OR Is there any so...

Rounded input buttons, absolute positioning, liquid width

I realize there are lots of rounded buttons questions, but my needs are fairly specific, and this hasn't been answered elsewhere. Here's my requirements: Works with absolutely positioned buttons Client side only techniques ( can't change HTML on server side ) Works on input type=button and input type=submit (button element not needed)...

polish characters utf8 dont show right

Currently my site supports English, portuguese, swedish and polish. But for some reason some polish characters dont show right, like Zal�z konto it should look like this Zalóz konto I have this // Send the Content-type header in case the web server is setup to send something else header('Content-type: text/html; charset=utf-8'); and ...

HTMLPurifier dies when the following code is run through it.

Using the latest release of HTMLPurifier with default configs. The following code will cause the oh-so-lovely blank white page in PHP. Am I missing something? Even if I set HTML.TidyLevel to light or none it still breaks. Here is a partial log of the errors thrown when trying to purify the code below: http://pastie.org/private/13f0htscq...

redirect in 3 sec...

What do I have to do to have a function on a website where it says it will redirect you to the site in 3 seconds or so? ...

Javascript/AJAX car make/model form

Hi guys, I am trying to create a car make/model form using Javascript or AJAX, problem is that I don't have a lot of experience with either, but here it goes. . . I need to create a form that has a car make and model drop down list in it, and when a user chooses a specific make, the model drop down will be populated with all of the mode...