head

How to modify HEAD element by using HttpModule

I want to add html meta data dynamically to the HEAD element of an aspx-page by using a HttpModule. When I hook to the PreRequestHandlerExecute event the Header property of the page is null. When I hook to the PostRequestHandlerExecute event the Header property is available but adding controls to it doesn't seem to work. When debugging...

clientscript.registerclientscriptblock or include not adding to the page head?

hi i am using the clientscript.registerclientscriptblock with (typeof(page),this,that) to bung in my scripts.. ie. jquery and validate etc.. and i also have some hand scripted stuff in the head (where scripts are supposed to be .. right?) doing bits and bobs.. but it seems that as the registerclientscript doesnt put the scripts in the...

Cannot use Response.Write in <head> section of aspx page?

I'm trying to use the Response.Write() method to dynamically insert content in the < head > section of an aspx page. I need to inject a string value from a property on a code-behind object which is a link to my CSS file. However, it is not being processed properly at run time. The object is public on the class and is hydrated in the Page...

join lists based on common head or tail

What is the fastest way to solve the following I will to join several lists based on common head or tail input = ([5,6,7], [1,2,3], [3,4,5], [8, 9]) output = [1, 2, 3, 4, 5, 6, 7] ...

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...

What is the HEAD in git?

There seems to be a difference between the last commit, the HEAD and the state of the file I can see in my directory. What is HEAD, what can I do with it and what mistake should I avoid? ...

How can I get a 302 redirection URL's Location header in PHP?

I am trying to find a universal way to expand most if not all of the shortened URLs out there. I know short URLs such as bit.ly, TinyURL, goo.gl, etc use the 302 redirection method to redirect you to another site. How can I make a HEAD request to the shortened URL in php and get the "Location" part of the header? Please help me with thi...

Using jquery append() in <head> (in a function/class)

I want to use the append() function from inside the <head>, in a function to be specific, like so: function custom_img(src_img) { $("div").append("<img src='"+src_img+"'>"); } var myimg = new custom_img("test.jpg"); This is a quick example that I just wrote out. I want my function to make a new image like that every time I create a n...

Find the base revision,message

I have a task: "Find base revision: select latest SVN revision that has message "TRANSLATION_BASE_EN_NO". If tag was found - get all the resources from that revision" How can I read messages, and search for the revision I need? I want to see a piece of code of course. In C# (vs2008) Thanks ...

jQuery Can't $(...).load() the head title in Chrome

I need to get the title of a remote page by URL. The code works in FFX, but not chrome. Anyone have any ideas? $(document).ready(function(){ $("title").remove(); $("head").load("http://www.latentmotion.com title"); }); ...

HEAD with WebClient?

I am going to assume the answer is no but.... Is there a way to use WebClient to send the HEAD method and return the headers as a string or something similar? ...

Best way to split several heads from a list with Erlang?

So, Erlang is a real joy to work with, but there's one problem I run into occasionally, that I'm wondering if there is a nicer way to solve. Often, I find myself needing to split several items from a list. The syntax for splitting a list into a Head and Tail is straight forward enough, but what about when there are multiple items. 1> Li...

What conditions can I rely on for a script that determines whether my servers are "up"?

I usually deal with at least two dozen servers on a weekly basis. I thought it would be a good idea to create a script that queries each of them and determines whether they're "up" or not. The servers run either Apache2 or IIS7. The hosting providers vary There are usually multiple sites on each server The setups are inconsistent, the...

Ajax auto refresh & javascript

I have a page which reloads a DIV with AJAX every 5 seconds. I also have an AJAX sorting script (you can see it here). The sorting script works great when I visit the page for first time, but when the page is refreshed it doesn't work. Am I doing something wrong? I have the sorting script in the HEAD tag, and the refresh on the bottom b...

HEAD request receives "403 forbidden" while GET "200 ok"?

Hello, after several months having the site disappear from search results in every major search engine, I finally found out a possible reason. I used WebBug to investigate server header. See the difference if the request is HEAD or GET. HEAD Sent data: HEAD / HTTP/1.1 Host: www.attu.it Connection: close Accept: */* User-Agent: WebBug/...

IBM Mq Message Header

Hi, I am sending messages to a remote queue, to which I have no control. I send a xml file as message but when the application reads the message it gets a message header like <mcd><Msd>jms_text</Msd></mcd> \0\0\0l<jms><Dst>queue:///TEST</Dst><Tms>1281475843707</Tms><Cid></Cid><Dlv>1</Dlv></jms> i don't want this message header to b...

What's the opposite of head? I want all but the first N lines of a file.

Given a text file of unknown length, how can I read, for example all but the first 2 lines of the file? I know tail will give me the last N lines, but I don't know what N is ahead of time. So for a file AAAA BBBB CCCC DDDD EEEE I want CCCC DDDD EEEE And for a file AAAA BBBB CCCC I'd get just CCCC ...

how to get <head> content of the current page with jquery or Jv

how to get <head> content of the current page ...

Where to include JS files - does it matter?

A few questions today :) I am using Codeigniter. I have a header view, containing my tags which contains the universal JS file loads. It also contains the 'layout' of the page, links etc, sidebar, and then it opens the tag and main content . This is closed in my footer view which is loaded after and 'content' view. In one particula...