html

Showing a large amount of HTML alternative content with swfobject & swffit flash site

I have a full flash site which uses swfobject to embed it 100% height and width. I'm using swffit to force a browser scroll bar for pages with a large amount of content. This is all fine and works perfectly. I also have the content in HTML format, as alternative content and this also works apart from in order to get the flash swfobject t...

ASP.NET MVC: render view to generate PDF: use iTextSharp or better solution?

I display receipt in both HTML and printer-friendly version. HTML version does jQuery tabs, etc, while printer-friendly has zero scripts and external dependencies, no master layout, no additional buttons, inline CSS, and can be saved as HTML without problems. Since I use Spark View Engine, I though maybe it's a good idea to generate PDF...

adjusting div position

How can I adjust div with exact center of screen at any resolution with position:absolute.?? ...

Jquery Anchor Elements Moving to New-Line on Hide

Hello, I'm new to JQuery (and JavaScript/AJAX in general) and am encountering a problem with hiding elements. When I use the code below the animation works and the element is hidden but as it is being hidden it is shifted onto a new line along with everything after it. This happens with horizontal hide as well but not with opacity. Is...

How to resize the font inaccordance with the div size....?

If the name is like "david" it comes within the allotted space.... but if the name is like "john pal abraham desouza" the allotted space increases automatically.. So i need to have the name occupied in the allotted space by auto resizing the font.. Suggest me a solution.. ...

Changing parent window's URL from IFrame

I have a situation where I have web apps on two different servers, where App1 contains App2 in an IFrame. Any links in App2 can have target="_parent" attribute, which allow those links to open in the top window. However, I can't find any way to get the same behavior in Javascript. I found this page, which claims that the child frame c...

alter divs css with javascript

Hello everybody, Can I change style of some div link. Here is what I mean <div id="somediv"><a href="#">something</a>/div> Lets say I have css like this : #somediv a{ color:#000; } Now for instance upon some action such as mouse click on any element I want to change somediv a link css to #somediv a{ color:#00ffff; } I know h...

How to refresh iframe parent page after a submit in the iframe?

i have iframe inside a page, and this iframe contain a submit button which will do some function. What i want is: after the iframe submit finish, call the parent page to refresh. i know how to refresh it: parent.location.reload(); But i don't know how to do that after submit finish. ...

What optimizations does a browser perform when a DOM element is being rendered off screen?

I control an iframe being rendered on another domain. Is there a clear way of telling whether this iframe is being rendered above or below the fold on the parent page? Obviously, I can't access the parent DOM because of the same origin policy restriction. For example, I tried measuring the speed of rendering on a canvas or VML tag, hopi...

Reset style properties of an HTML element to stylesheet-defined defaults?

CSS code: p.myparagraph { color: yellow; } Assume that I've turned the color of <p> elements that use the myparagraph class to red. Is there a way to reset all style properties of paragraphs using this class (not limited to color) to their CSS-defined defaults? ...

Rotating portfolio of several websites

I have taken up the banner of producing a portfolio for my web design/development group. This portfolio would be full screen on a nice flat panel TV and rotate through a list of our websites that we have built. That is really the only requirement - display our work on a big TV for people to oogle over when they enter our office. I have t...

Programatically Scrolling Over Images in a Website

Hey all, I'm trying to set up a website using HTML and JavaScript that displays sections of an image at a time and, by clicking buttons or sections of the image, will scroll to a different section of the image. |-----| |-----| |-----| |--A-| |--B-| |--C-| |-----| |-----| |-----| If an image if formed by the concatenation of A, B an...

HTML form values adding commas in Classic ASP

I have a classic ASP page that submits back to itself. Strangely, the values being returned from the selects have commas being added to the ends of them. Has anyone run into anything like this before? Any troubleshooting steps or tools recommended? I'm expecting the values to be returned just as numbers - they are the IDs of the values ...

Integrate a mp3 player into a page with no reloading issue

Is there any way to integrate an flash mp3 player into a html site where an reload wouldn't stop music playing or make it start from beginning. I wouldn't want to use ajax for the rest of the site cause it's not SEO friendly, and also pop-ups are not a good solution cause every browser nowdays blocks them. ...

Jquery - Find a select element inside a parent DIV

I have a parent Div : <div id="ctl00_MainContentAreaPlaceHolder_deliveryOpen" class="delivery_open" style="display: block;"> //Child select Element <select class="txtfield ckgcountry" id="ctl00_MainContentAreaPlaceHolder_DeliveryPersonalInformation_country" name="ctl00$MainContentAreaPlaceHolder$DeliveryPersonalInformation$country"> ...

emulating mouse clicks on a series of a tags

I am trying to set up links in an array so I have: <a href="#" onClick="javascript: doFunction();" name="mylinks">link1</a> <a href="#" onClick="javascript: doFunction();" name="mylinks">link2</a> <a href="#" onClick="javascript: doFunction();" name="mylinks">link3</a> ... And I want javascript to access the array like this: function...

What to keep in mind when making Wordpress themes

I have been making Wordpress themes for a year or two and keep running into things I need to keep in mind when trying to make my themes as compatible and flexible as possible with their settings, plugins, etc. Is there a resource that keeps a checklist of all the "don't forgets" of Wordpress theming? What things do you try to keep in m...

Strange 302 redirect breaking my $_POST

Hi all I am submitting from a form to another php page which is supposed to process it. The problem is that the $_POST is often empty when I try to read it. This is the form: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/...

How to make HTML IFrames talk to each other?

How to make HTML IFrames talk to each other? So I have 2 Iframes I know and create thare contents. I need to make tham talk one to other - for example one to send XML data to other or just call JS function from it. ...

Google check out Merchant Id Not corrrect

Hi I am using google check out in my project. It is in sandbox mode. I am using Xml api check out , When i click google button in my page , i got an error message like " An error had ocurred: HTTP Status: 400: Error message: No seller found with id 623746024295438 " What is thie , Actually , i have that merchant Id and Key ,, Ple...