Hello all,
I have multiple links in a page. When I click a particular link I want a div which contains the details of that link and hide all other divs associated with other link in the same page
Please find a solution may be using javascript.
I am doing this in my code,
HOST = '192.168.1.3'
PORT = 50007
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((HOST, PORT))
query_details = {"page" : page, "query" : query, "type" : type}
s.send(str(query_details))
#data = eval(pickle.loads(s.recv(4096)))
data = s.recv(16384)
But I am continually getting EOF at the last line. The code I am sending with,
self.request.send(pickle.dumps(results))
So I was working on a toy website (http://nirmalpatel.com/yeah/index.html). If you check the source, you can see that I have linked a m4v and ogg version. When I load this page from my own computer using a url that starts with file:// the page works fine in Safari, Chrome and Firefox. However, after I upload all of the videos and the HTML to my server Firefox stops working. I don't think it's a permissions issue as both videos have the same permission.
I have a ASPX Page that contains several user controls, which are loaded dynamically after user interaction.
On one of ascx I have a hidden button that is being clicked on some user actions (via button.click()), which works fine on 1st page load.
But after the form is being submitted once, the other ascx is loaded. There if user clicks the back button and resubmits the 1st form (again via button.click()), button_clicked event on server does not fire again. Any thought?
I was used caches_page/caches_action for some page, it set expire in a time(1 hour or 1 day), I don't expire cache when the data updated.
When the editors create or update the content them can't view the new result in the page.
I want to disable the global caching when the visitor IP in my company.
How to do it?
This is a 101 question I know, sorry.
I have two controllers; Users and Static
Static/index is my root index page
I want the Users/new form to be displayed on my index page.
All forms are working, just no idea how to include the User form on Static/index
I have the following piece of code in my controller
def index
session[:previous_url] = URI(request.referer).path
if session[:previous_uri] != new_path
redirect_to registration_path(id: current_user.associate_username)
end
end
However this does not actually work and i get a bad URI error.
I just want to check if the request came from a particular page and if not redirect it to another page. I would also like to know if there is a better way for doing this?.Thank you
So, I am trying to use JSP to create a set of webpages. I want to link two pages so that if the user clicks a button in one page, it will trigger an event in the other page. Is there an efficient way to do this?
I was taking a look at creating cookies and/or sessions. Any suggestions on these two methods? Thanks
Hi,
could you give me idea how to calculate unique views of page? If i will increase counter on each page load it will be no good, otherside storing information of viewed pages in session looks like not ideal solution.
I'm loading a webpage inside a HTML component in AIR. By default, when something is clicked the next page is loaded inside the HTML component itself. I want the links from that page to open in an external web browser.
Is this possible at all?
Hi
Case is I want to prompt a message (Do you want to save changes?) if text box default value is updated on .aspx page before submitting the page. I am using .text() to compare with .val().
It works fine in firefox but failing in IE7 and IE8
if ($("#<%=txt1.ClientID%>").attr("value") === $("#<%=txt1.ClientID%>").text())
return(true);
return confirm('Do you wish to save these changes?');
I need to send the follow querystring:
http://prod.intranet.siemens.com.br/drvs/index.aspx?page=2&pag=4&varpatch=%20C:\Documents%20and%20Settings\OPE253\My%20Documents\Ca$@#!
Then i try to assing this to a string,but .NET break string at
http://prod.intranet.siemens.com.br/drvs/index.aspx?page=2&pag=4&varpatch=%20C:\Documents%20and%20Settings\OPE253\My%20Documents\Ca$@
'#" do not appears in querystring
Any ideas?
When a vote value is changed, the form POSTs the change, then refreshes the page. This is called on the top of the page upon load:
if (isset($_POST['q'.$question_id]))
{
$user->updateQuestionVotes($question_id, $_POST['q'.$question_id]);
}
Why does it update every time I refresh after the first time? Do I need to unset it somehow?
If I am on a website#1, and I enter my username/pwd for website#2 on a login page that is on website#1, and website#1, behind the scenes, makes a httpwebrequest to website#2 and posts to the login page. If I then navigate to website#2, should I be logged in?
website#2 uses formsauthentication and I call a httpHandler that is on website#2 and pass it the username/password via the querystring.
Should this work?
Hi,
I am working on Joomla currently for the past one month. I am trying to embed a video stream in my article page like inside the content i am trying to have video stream like youtube video.
I have uploaded a video in my media manager. And i dono how to stream that video in my page. Please help me in doing so..
Hello, I'm loving vim, but one thing that's bugging me is that when I hold the control key and mouse wheel up or down, the window scrolls normally when the bindings are telling it to page up/down.
I'm using the exact same vimrc file (and plugins) on one of my linux machines and the CTRL+mouse wheel does page up down (as opposed to just normally scrolling like in windows).
Is there some way to force gvim to response to a ctrl+MouseUp/Down event? It seems to be ignoring it in windows ='[
The problem is every time a tab is activated, the cursor jumps to the top of the page, since the tab link points to a div and the page scrolls up to the top of the div. This creates a jumpy effect if the user has scrolled down a bit, while reading tab content.
Is there anyway to prevent this?
We have link to some page (with html code), that page have one img, which attributes title and alt are equal.
Script must open link, grab the src attribute of img which title=alt, and throw the value into some variable.
How to do it?
Thanks.
Hello,
I'm setting a PHP session variable with a success message for a HTML form that I'm submitting. If there are no form errors, I redirect to the same page (using header()) and display the message from the session variable. Everything is fine until here, but if I access that page again after submission, the message is still there. Is it possible to make it appear only when I redirect after a successful submit?
Thank you.
I want an animation play only once in the browser. If any user seen the movie and if goes to any other page or refresh(F5) and then come back on the animation page then animation should not play from start. I want to play it from another frame.
I think it can be done by set cookie or somthing using javascript or php.
Please anybody help me. Thanks in advance. I will appreciate ,if some code help please
I want to be able to do the following:
get '/:slug' do
haml :page
end
get '/administration' do
haml :admin
end
Is there a way that I can have get '/:slug' do have an exception for /administration? I realize you can do this with if else statements:
get '/:slug' do
if params[:slug] == 'administration'
haml :admin
else
haml :page
end
end
But that isn't very clean looking. Is there a way to have an exception to routes?
I'm writing a Wordpress plugin, and based on certain circumstances, I want to redirect to a different page, but the redirect never happens. headers_sent() returns false. I'm using the pre_get_posts hook. Here is a small snippet:
function test_redirect()
{
header("Location: http://www.cnn.com/");
}
add_action('pre_get_posts', 'test_redirect');
The redirect never happens, and no errors are reported on the page or in the error log. Why can't I redirect?
Hello, which free PDF viewers are available to directly show a PDF file inside a webpage?
I don't want to use Adobe Reader integration because I don't like it. I tried with Google Docs Viewer and it works fine but doesn't resize as I resize the page..
I would like to know if something quite light that can also be easily resized according to the page exists.. any suggestions?
any ideas how i can click on a button and then direct me back to homepage without having the navigation bar to show the previous page? meaning it's like starting from the beginning of the home page..