body

Add to <body> tag of a cakePHP app

Hello, I have an app where I need to call some JS in the onLoad event of the BODY tag of two forms. However, I can't find how to modify the tag for just them. Does anyone know? Frank ...

What is the lightest and most efficient way to embed images in php mail?

I am trying to imbed an image in my php emails and use as a signature. Meaning at the end of the email I want to have an image. I have tried many different combinations and for the most part am not getting the image to appear. Are there size restrictions for images or am I just doing in a way that is making it to heavy? A few things I ha...

body onload doesn't work in Javascript

hi, i had written one JS in asp.net. I had called that from body onload, but the JS doesn't get called where i have put my debugger. What could be possible reasons for this? I'm developing website in dotnetnuke. The JS i have written is syntactically and logically correct. Thanks <script type="text/javascript"> var displayTime, speed...

How Can I Add a Class to the Body Tag using jQuery?

Let me clarify my question, and the solution I'm looking for. I'm using wikispaces.com, and I would like to dynamically add a unique body class for every page using jQuery that somehow grabs the URL, and then inserts that unique body class that would be applied specifically and only for that page. So, here's an example url from my wiki...

Groovy Grails - how to read body contained within tag?

I'm considering reading the body of a tag to determine what variables the tag should send to the body. e.g, here's the GSP <g:get_domain_info id="${patientInstance?.id}" > <tr class="prop"> <td valign="top" class="name"> ${firstNameLabel}</td> <td valign="top" class="value"> ${firstNameValue}</td> </tr> </g:get_domain_info>...

PostMethod setRequestBody(String) deprecedated - why?

I am using Apache Commons HttpClient PostMethod 3.1. In the PostMethod class there are also three methods for setting POST method's request body: setRequestBody(InputStream body) setRequestBody(String body) setRequestBody(NameValuePair[] parametersBody); NameValuePair API First two methods are deprecated. Does anybody knows why? Bec...

Faking body.scrollHeight

I have a JavaScript application that is being loaded in an iframe (via a Liferay portlet). The actual HTML is just an empty tag and the JS is loaded when the document is loaded. When Liferay loads the page in the iframe, it resizes the frame based on the body.scrollHeight property which ends up being 0 since there is no real content i...

How to append beginng of body to subject of mail (body of new mail can be erased) and forward it using e.g. procmail?

see the title for the question. that is all. ...

PHP: Inject iframe right after body tag

I would like to place an iframe right below the start of the body tag. This has some issues since the body tag can have various attributes and odd whitespace. My guess is this will will require regular expressions to do correctly. EDIT: This solution has to work with php 4 & performance is a concern of mine. It's for this http://drupal....

Email body in Symfony 1.4 mailer?

Hi, I'm using the Symfony 1.4 mailer where I build the various bits needed for an email and then send it out using: $this->getMailer()->composeAndSend($sender, $recipient, $subject, $body); In the email body, I need to able to take advantage of variables generated in the action, so right now I might have this in my action: $body = '...

jQuery access variable in <body> tag?

Essentially I need to specify a JQuery variable in my webpage's body tag, and have a function in my head tag read it. This is the function in my head tag (simplified): <script type="text/javascript"> $.noConflict(); jQuery(document).ready(function($) { $('a.paymentAdd').click(function(){ alert ("rowCount 1 = " + rowCount); rowCoun...

change the master page body color from different pages when they load in vb.net

I have like 10 aspx pages (junior_class_students1.aspx-...10.aspx). They all have the same master page in the back (class_students.master). Everytime i load a page i want the master page background-color to change, to the one that i can specify per page. so ...students1.aspx then .master ...students2.aspx then .master ...students3.asp...

Match multiple terms within <body> tags

I've want to match any occurrence of a search term (or list of search terms) within the tags of a document. My current solution uses preg (within a Joomla plugin) $pattern = '/matchthisterm/i'; $article->text = preg_replace($pattern,"<span class=\"highlight\">\\0</span>",$article->text); But this replaces everything within the HTML o...

Styling the "html" element in CSS?

Can anyone explain to me why can we style the element html? What are differences between it and body? I usually see tutorials and multiple websites using body and never html, I only found about it when using YUI 3: CSS Reset since changing the background in body didn't work. Edit: Actually, I still haven't found the problem regarding...

html body gwt click event

html file has two textbox and one button. but i need to generate click event when i only click outside of the two textboxes and button element.how can i do that. RootPanel.get().addEventListener or something like that?? help. ...

Variable is Undefined

<!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/1999/xhtml"&gt; <HEAD> <script type="text/javascript" src="lb-core.js"></script> <script type="application/javascript"> var lbp = { defaults: { color: "blue" }, in...

ASP.NET <Body onload="initialize()">

Hi, I am creating an ASP.NET custom control. I want to set the body onload event of the ASPX page where the control resides. Please note I cannot rely on the body tag in the ASPX page having runat="server". any ideas?? Cheers. ...

Why not use javascript handlers on the body element?

As an answer to the question of 'How do you automatically set the focus to a textbox when a web page loads?', Espo suggests using <body onLoad="document.getElementById('<id>').focus();"> Ben Scheirman replies (without further explanation): Any javascript book will tell you not to put handlers on the body element like that Wh...

html body inside if condition

Hi, i have two different bodies for different conditions. can i do like this.... <% if(yes) %> <body onload="JavaScript:timedRefresh(120000);"> <% } else { %> <body> <% } %> Please help me... Thanks in advance.. I want to compare my title in if condition how can i do??? currently i am doing like this: <head> <title> <tiles:getA...

ActionMailer sent with body unavailable in view

So ive got a ActionMailer mailer class ReportMailer < ActionMailer::Base def notify_doctor_of_updated_document(document) recipients document.user.email_id from "(removed for privacy)" subject "Document #{document.document_number} has been updated and saved as #{document.status}" sent_on Time.now bod...