html

jQuery - Problem with executing animation of two separate objects, one after another

Hello I have problem to put together animations of two separate objects to second one start when first one ends. I tried to use callback but it seems that i make some syntax misteakes which crash jQuery or cause some unexpected behaviour. It seems that i'm stuck so I'd like to ask You for best way to put these animations together to act ...

What's the best platform for a static-website?

Hello, I am building a static-website (as in, to change a page, we change the HTML and there is no DB or anything). Well, it will have a number of pages and I don't want to copy and paste the HTML navigation and layout code around everywhere. So what would be the best platform to use in this situation so I can have all my layout and "co...

How can I embed a flash movie in a zend view programmatically?

I have tried to embed a flash movie in a zend view using the htmlFlash helper. In theory you only have to pass the movie path to the htmlFlash helper in a phtml view: echo $this->htmlFlash('/path/to/myMovie.swf'); And the framework will generate the html code in the html page: <object data="/path/to/flash.swf" type=...

How to delete a file with javascript?

Did not have luck with these examples: Javascript File remove Javascript FSO DeleteFile Method Deleting a File There are no special permissions on the file. Is there a way to do this in JQuery? The requirement is - a certain file must be deleted from the web directory when another page is loaded. There is no security issue as this ...

IE7 issue w/ jQuery site feature

I'm not entirely sure what's breaking here on this page: http://grandoaks.org/floor.html but it seems to only be broken in IE7 (IE8, FF3, Safari, Opera, Chrome, Camino all worked). When you mouseover the names of the suites, it should show a description by removing an 'active' class and applying it to the corresponding div, with the sty...

How do I make a shrinkable scrollbar?

What I want: <div style="overflow:scroll;width:100%;height:50%;"> &nbsp; <div style="height:500px;width:400px;border:solid 3px red;"> </div> </div> <div style="overflow:scroll;width:100%;HEIGHT:50%;"> &nbsp; <div style="height:500px;width:400px;border:solid 3px red;"> </div> </div> Notice ...

How to recive an array from flash vars?

How to recive an array from flash vars? So I have HTML page. with flash app on it. I vant to send an array to flash. How to do such thing using flashVars (I have something like uid=12&sid=12&sid=32&sid=12&sid=32) so i need to get dinamic\random\beeg\unnown number of Sid's not losind UID how to du such thing? btw I want to pass in an ...

How do I display a local html file in a UIWebView?

I have a relatively simple question that I cannot seem to find the answer for. While doing the Google Maps Java API Tutorials, I ran into a problem. I can load an HTML file from the web, but when I try it locally, it just displays the contents of the file instead of running the script. Here's what works: NSString *url = @"http://code.g...

What are the best AJAX development tools?

Hi there, can anyone please help me to identify the best AJAX development IDE or tools base on the advantages and disadvantages? Thank you ...

change an absolutely positioned webpage into a centered one

So I have this template design that is currently absolutely positioned, but I'm trying to make it centered in any widescreen browser. I've tried making the width auto on the left and right side in my container, but it is still aligned with the left side. Css .JosephSettin_png { position: absolute; left:0px; top:0px; w...

How to first get different related values from diferent SQL tables (PHP)

I am triig to fill options list. I have 2 tables USERS and STREAMS I vant to get all streams and get names of users assigned to that streams. Users consists of username and id Streams consists of id, userID, streamID I try such code: <?php global $connection; $query = "SELECT * FROM streams "; ...

VB6: create IHTMLElementCollection from scratch

hi, is it possible to create an IHTMLElementCollection from scratch? i'm having a htmldocument and want to return only certain elements from it as IHTMLElementCollection. for example theres a table, and i want to put all table rows with a certain classname into the collection. any ideas if it's possible? thanks ...

What's the best way to access a website from a Windows Service?

I'm struggling to write a Windows Service that accesses a website, logs in using stored credentials, and downloads the HTML to parse it. What do you think is the best way to go about this? ...

Can Nokogiri use a SAX parser to parse an HTML fragment?

I have this code. class MyParser < Nokogiri::XML::SAX::Document def characters(string) LOG.debug("characters #{string}") end def start_element(name, attrs = []) LOG.debug("start_element #{name}") end def end_element(name) LOG.debug("end_element #{name}") end end parser = Nokogiri::HTML::SAX::Parser.new(MyParse...

How to vertically align images in <td>

I got a <td> where two images () reside shown as follows. One is much higher than the other. How do I let the shorter one align to the top of <td />? <td style="padding-left: 0px; cursor: pointer; vertical-align: top;"> <img width="85px" src=".../xyz.png"/> <img src=".../icon_live.gif" /> // shorter one </td> ...

Hyphen and &nbsp; differences between Firefox and other browsers

Firefox and seems to render a hyphen followed by &nbsp; differently to other browsers. Here is some test code that demonstrates the problem: <html> <body> <div style="border: 1px solid blue;width: 50px"> This text can break. Do&nbsp;not&nbsp;-&nbsp;break&nbsp;this&nbsp;text. </div> </body> </html> Notice how in Firefox...

Why wont this JS code work if its all on the same line?

I'm writing HTML code for a java servlet. i first write the code in html/js so i can debug what im working on, and then ill make it a java string and put it in my servlet. My problem is that the code is working fine when i view it in ff from a local html file, but when i view it on my java servlet, it doesnt work because the js isnt ge...

How to reload ASP 1.0 page with additional parameter

Hi, I'm a beginner of ASP. I'm maintaining at ASP 1.0 page and I want to reload the page with an additional parameter when user click client-side URL. Its important that it also keeps the current parameters. The objective is to export the table currently display in Excel. So I want to reload the page with a special parameter that w...

is it possible to achieve an image clipping/masking effect with html + css3?

Hi - I'm trying to place a nice border around an image that's 250x250, using only html and css. The markup is this: <div id="img-container"><img src="pic.jpg" border="0"/></div> And the css is: #img-container { height: 225px; width: 225px; padding: 3px; border: 1px solid black; z-index: 10; position: relative;...

Is it safe to display user input as input values without sanitization?

Say we have a form where the user types in various info. We validate the info, and find that something is wrong. A field is missing, invalid email, et cetera. When displaying the form to the user again I of course don't want him to have to type in everything again so I want to populate the input fields. Is it safe to do this without san...