One of the sites i visit has an annoying habit of naming all their files showimage.php. When i save the image or file it saves as a .php so i cannot open the file. The worse part is, there is a &ext=zip&more=blah in the url.
Is it possible to use greasemonkey to rename the file ext so it isnt php? (maybe injecting a content disposition header?)
I am new to iphone development.I want to implement lazy tables in many views.How can i do that? I am have two url and i want to parse it in the delegate class and implement it in both view,Please help me out.Any sample code for implementing lazy tables in more view will be more useful.Thanks.
Users can view a specific entry in my webapp with a URL. /entry/8, for example. If an entry doesn't exist, "Entry not found" gets appended to @messages and I render an error page.
I'd like to redirect the user to /recent, but I can't figure out a good way to keep the error message around to be displayed. There are other actions that need to take place in the Recent controller, so I can't just duplicate the query and render :posts.
I'm creating a Windows Phone 7 app and learning Silverlight in the process. I have a youtube video url and I'd like the user to be able to click a video thumbnail in my list and go to a youtube app to view the video (similar to iPhone). Is this possible? If so, can you share some code to send the user to the video? I already have a MouseLeftButtonUp event handler.
i have tried jQuery('#form_id').serialize(). this returns only the form data as a url encoded string. is it possible to get the form data as an object?
hi,
I modified a very simple php page on my server:
<?php
header("Location:http://www.google.com");
?>
and it stopped to work. I get as result a blank page (Without source in it).
I modified back to the previous url.. and it still doesn't work.
What's going on ?
Thanks
ASP.NET MVC - Can i have multiple names for the same action?
In the same controller... Can i have multiple names for the same action?
I am looking for a complete multiple language solution. Essentially the i want all the logic to be sa same but change the "keywords" (actions, controllers in the url) depending on language.
I have the following CSS
.ul{
list-style-image:url(/images/bullet.png)
}
My bullet.png is 20 x 20px however it is displaying the text at the bottom of the image while I need to display my text in the middle of the image. Is there a way to assign margins and paddings that move only the text?
Just wondering if there is an easy fix for this problem.
The full error is:
Error: uncaught exception: [Exception... "Component returned failure code: 0x804b000a (NS_ERROR_MALFORMED_URI) [nsIURL.spec]" nsresult: "0x804b000a (NS_ERROR_MALFORMED_URI)" location: "JS frame :: chrome://fastdial/content/file.js :: anonymous :: line 218" data: no]
And line 218 is
nsiUrl.spec = url;
I give you all of the code from the file if you need it...
Thanks
Ingalls
I have the following CSS
.ul{
list-style-image:url(/images/bullet.png)
}
My bullet.png is 20 x 20px however it is displaying the text at the bottom of the image while I need to display my text in the middle of the image. Is there a way to assign margins and paddings that move only the text?
My error.log file for my site says
Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://URL/TO/REFERER
My question is, what is LogLevel? I've googled it but it seems like I'm just getting things about java. Our site is in PHP.
I have a showSuccess page that requires some get variables, and on that page is a form. When the form submits to executeCreate() and there is an error, it calls the function setTemplate('show') and returns back to showSuccess. However, the get variables are missing.
How do I keep the url the same?
What do I need to put in a php code so that the user cannot access it even if he specified the correct url for the page they are trying to access. And redirect it to the logon page. I'm really having difficulty in this matter, everytime I click back button on the browser the user can still access the page
Hey guys,
today i was doing some java script coding,
in that i need some images only appear on my home page.
so how can know that if user is seeing the home page or not?
or i do this with url check up?
is their in built function check in drupal 6?
Is ther any way to get data from other sites and display in our jsp pages dynamically.
http://www.dictionary30.com/meaning/Misty see this url
in that one block is like
Wikipedia Meaning and Definition on 'Misty'
In that block they are fetching the data from Wikipedia and displaying into dictionaly30.
Question:
How they are fetching wiki data to their site.?
I need to display data like that in my jsp page by fetching from other site.
I am trying to pass some data from one page to another page by using jquery but it dose not working, below is the code which I want to click the text in source page and the destination page will hide the current text.
Source page:
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript">
$(function () {
$("a.pass").bind("click", function () {
var url = "Destination.html?name=" + encodeURIComponent($("a.pass").text());
window.location.href = url;
});
});
</script>
</head>
<body>
<a class="pass">a</a><br />
<a class="pass">b</a><br />
<a class="pass">c</a><br />
<a class="pass">d</a>
</body>
</html>
Destination page:
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript">
var queryString = new Array();
$(function () {
if (queryString.length == 0) {
if (window.location.search.split('?').length > 1) {
var params = window.location.search.split('?')[1].split('&');
for (var i = 0; i < params.length; i++) {
var key = params[i].split('=')[0];
var value = decodeURIComponent(params[i].split('=')[1]);
queryString[key] = value;
}
}
}
if (queryString["name"] != null) {
var data = queryString["name"]
$("p.+'data'").hide();
}
});
</script>
</head>
<body>
<p class="a">a</p>
<p class="b">b</p>
<p class="c">c</p>
<p class="d">d</p>
</body>
</html>
Please Help.
hi all,
i m searching for a php script that download video from any video site( youtube,metacafe etc..) by submitting only url of that video.
is that possible by one script or i have to search different script for different site??
what is basic need to download video???
please reply ASAP.
thank for support me always.
hi,
I'm using path auto module to automatically stores images in the projects subfolder. I'm using the [title] token and I had a unpleasent surprise: the title "abc / dce", creates 2 folders.
I was not expecting this because in the pattern descrition, [title] is clearly distinguished by [title-raw].
[title] Node title
[title-raw] Unfiltered node title. WARNING - raw user input.
So, how can I fix this issue, I would like to use the title I have in the url "abc-dce"
thanks
How do I extract foo from the following URL and store it in a varialbe, using regex in php?
http://example.com/pages/foo/inside.php
I googled quite a bit for an answer but most regex examples were too complex for me to understand.
explorer.exe opens veeeery slow when I press [Win+R] key or type "explorer ." in command prompt etc. But it opens with normal speed when I just click on the shortcut to any folder.
When I click on the URL in IM like ICQ, already openned browser (firefox) takes too long to process link too.
I have this problem for some months and I'm very tired of this.
OS: WinXP SP3.
Hi all,
How to get a parameter encode in the url ?
for exemple, if we have an html file containning :
how to get the value of a from application.java class ?
Thanks
Hi all,
I'm building a website, and i need to know
the actual page address in which the user is in,
in order to take users in the same page after login.
The problem is that every page is generated from
variables passed by url and query string, so I dont't
know how to recover every variable and assign to it the
correct value.
How to recover variables name and assign them
the correct values?
Thanks
lore
(sorry for my English)
I have C++ Win32 app that uses HttpSendRequest to request some URL (via https). It worked OK earlier; but then errors ERROR_INTERNET_INCORRECT_HANDLE_STATE began happen. Why these ones? Any ideas?