15,897,518 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 10749093 (Top 43 by date)
Member 10749093
4-Feb-15 1:13am
View
thanks for your answer peter. the reason i want to put all codes in 1 single file because i want to make my page load faster instead of creating so much js files and linked to my page it will make the page load slow.
Member 10749093
4-Feb-15 1:10am
View
thanks for your answer. i just wanted to make sure because, i have 2 pages and on page1.html i have div called load_content that will display div in 10 seconds and load its content after the page loaded. and on page2.html i have div called refresh_in_ten that will appear in 10 seconds and refresh the page automatically. so now on each page in head section i have linked same js file like this <script type="text/javascript" src="main.js"></script>
so now in that main.js file i have code for that div load_content and i have code for div refresh_in_ten
and that make problem for my divs one working and other don't etc. unless i make 2 js files and enter the codes for each div in single file
Member 10749093
31-Jan-15 8:45am
View
Thanks for your time Avik appreciate it, but i have solved this by myself.
Member 10749093
31-Jan-15 0:42am
View
thanks for your answer Avik, but your code is only a good countdown timer but it doesn't refresh the page automatically and there's no button to reset the timer back to 60 seconds again without refreshing the page
Member 10749093
30-Jan-15 23:51pm
View
thanks for your answer. but i am not asking how to refresh a page. i am asking about "when there's 10 seconds left to refresh the page then, a button will display and say "Click here to reset timer" and it will reset that timer to 1 min again"
Member 10749093
30-Jan-15 23:19pm
View
you didn't help me in my last post even i tried to explain it to you many times. and i don't know if i can accept my last post as bad or not instead of accept it as solved. so if you don't know, and you can't help me, stop answering any of my posts. it's not your business how many times i post it. if it's abuse then let moderators do their own job by taking the right action.
Member 10749093
28-Jan-15 2:31am
View
i will try to explain 1 more time to make it clear for you. if you can help me with it i will be really grateful
this is my page:
<html>
<head>
<script type="text/javascript">
setTimeout('window.location.href=window.location.href;', 1080000);
</script>
</head>
<body>
<div id="norefresh">HERE SHOW COUNTDOWN TIMER WHEN 1 MIN LEFT AS TEXT. CLICK HERE TO RESET TIMER TO 5 MINS TO PREVENT REFRESHING THE PAGE</div>
</body>
</html>
hope you understand from what i wrote above . on div id norefresh it must show countdown timer as text only like, "this page will refresh in 60 seconds" and that countdown as text is going like , "60, 59, 58, 57, 56, 55, 54 to 0 then refresh the page if user didn't click on that text "CLICK HERE TO RESET TIMER TO 5 MINS TO PREVENT REFRESHING THE PAGE" . but if user clicked, then reset timer to 5 mins and it's not going to refresh the page
Member 10749093
28-Jan-15 2:30am
View
Deleted
i will try to explain 1 more time to make it clear for you. if you can help me with it i will be really grateful
this is my page:
<html>
<head>
<script type="text/javascript">
setTimeout('window.location.href=window.location.href;', 1080000);
</script>
</head>
<body>
<div id="norefresh">HERE SHOW COUNTDOWN TIMER WHEN 1 MIN LEFT AS TEXT. CLICK HERE TO RESET TIMER TO 5 MINS TO PREVENT REFRESHING THE PAGE</div>
</body>
</html>
hope you understand from what i wrote above . on div id norefresh it must show countdown timer as text only like, "this page will refresh in 60 seconds" and that countdown as text is going like , "60, 59, 58, 57, 56, 55, 54 to 0 then refresh the page if user didn't click on that text "CLICK HERE TO RESET TIMER TO 5 MINS TO PREVENT REFRESHING THE PAGE" . but if user clicked, then reset timer to 5 mins and it's not going to refresh the page
Member 10749093
28-Jan-15 0:18am
View
as i am not that good with javascript but i don't think it's that complicated.
that text will only show that last 1 min left to refresh so user can click on it to reset timer to 5 mins again and it will not refresh the chat.
well, i don't know if i accept the answer because it didn't help me. thanks for your time and for your answer.
Member 10749093
27-Jan-15 23:12pm
View
Thanks for answer, Sergey, my auto refresh code above is fine. it does refresh he whole page in 5 mins as i modified . but my purpose of my question is that div id norefresh.
for example, when 1 min left to refresh from that 5 min, then that text in that id norefresh must show some text saying "page will refresh in 1 min click "HERE" to not refresh" so when you clicked on that text timer must set to 5 mins again and it must be started . hope you understand.
Member 10749093
23-Jan-15 10:10am
View
ok thanks. 1 more thing, is there any way the body of he page to display that strings as text or links ? for example like this , Sam , Jake etc. no forms, i just want it to add that strings automatically at the page whether i type the url or not but strings should be add automatically
Member 10749093
22-Jan-15 11:58am
View
Thanks for your time helping me Peter.
1. yes, i have 2 pages. page1.php and page2.php
2. on page1.php i have this code
if(isset($_GET["id"]) && trim($_GET["id"]) == '1111' && isset($_GET["name"]) && trim($_GET["name"]) == 'sam' ){
echo 'Your name is Sam';
}
else{
echo 'Your name is Not Sam';
}
if(isset($_GET["id"]) && trim($_GET["id"]) == '1111' && isset($_GET["name"]) && trim($_GET["name"]) == 'jake' ){
echo 'Your name is jake';
}
else{
echo 'Your name is Not jake';
}
see there's 2 query strings with name sam and jake, that 2 names i want them to be displayed on page2.php .
3. i don't have code on page2.php to make it display that 2 names "this is what i need".
4. i launch page2.php first on browser.
5. no, not page1.php . i want page2.php when it's loading, i want it to read and display that 2 names sam and jake that i put them as query string that is in page1.php .
Member 10749093
22-Jan-15 11:01am
View
so there is no other way to do that? by adding this link somesite.com/index.php?id=111111&name=sam on body or anything ? i need the only way to get query strings nothing else
Member 10749093
22-Jan-15 1:34am
View
if i add this on page2.php then how it will display that query strings "id" and "name" from page1.php ?
Member 10749093
22-Jan-15 1:04am
View
this is like post and get Peter, but what i mean is like, for example, while page2.php is loading, check page1.php if there's 2 or more query strings then display them on page2.php . also, it must display query strings for id 123 only
Member 10749093
22-Jan-15 0:27am
View
http://www.codeproject.com/Questions/868258/PHP-auto-add-query-strings-in-a-page this is my question link please answer it if you can
Member 10749093
22-Jan-15 0:03am
View
hey peter, is there anyway i can message you? i have 1 more question its about same this question almost
Member 10749093
21-Jan-15 22:54pm
View
i don't really know how to thank you. Thanks you very very much Peter it worked perfectly. i been searching for this solution like about a week. and now you solved this for me. Thanks again.
Member 10749093
21-Jan-15 22:16pm
View
look at that code, it has only 1 "id" i want to make it like this somesite.com/index.php?id=111111&name=sam
Not like this somesite.com/index.php?id=111111
Member 10749093
21-Jan-15 22:15pm
View
if(isset($_GET["id"]) && trim($_GET["id"]) == 'hi')
Member 10749093
21-Jan-15 21:42pm
View
hey Peter, can you tell me how do i make it like for example, there's many links on the page but not displaying until i put the id on url. so if i put id on url then link must show up in body of the page. hope you understand and thanks.
Member 10749093
9-Aug-14 11:17am
View
how this should work i don't understand?
Member 10749093
23-Jun-14 3:57am
View
i have tried that using html tags. but didn't work. it only works when i write text only
Member 10749093
22-Jun-14 12:02pm
View
hi friend. i have code
Dim Rstring As String = WebBrowser1.Document.Body.InnerHtml
Rstring = Replace(Rstring, "Hello", "Hi")
WebBrowser1.Document.Body.InnerHtml = Rstring
that code replace "hello" to "hi" which is on page on webbrowser but i want to write the html code on that "hello" is place. then i be able to replace the code with something like, another code or maybe word.
Member 10749093
4-May-14 12:07pm
View
i mean another page that's using that code to prevent their pages to Not be in iframe on some websites
Member 10749093
4-May-14 2:42am
View
you deserve it :) it has been a week searching for solution. i was knew it's some how by javascript using "if" but my experience in javascript is very low
Member 10749093
4-May-14 2:34am
View
Wow. code is working 100%. you're amazing. i chose your answer as "Accept Solution" right away.
Thank You Very Much.
Member 10749093
3-May-14 12:45pm
View
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>
$(document).ready(function() {
$('td:eq("Hello")').html("Hi");
});
</script>
</head>
<body>
<td>Hi</td>
</body>
</html>
Member 10749093
3-May-14 12:44pm
View
Deleted
here i used it like this
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>
$(document).ready(function() {
$('td:eq("CW")').html("CWXX");
});
</script>
</head>
<body>
<td>CW</td>
</body>
</html>
but it didn't work
Member 10749093
3-May-14 12:32pm
View
thanks for your answer. can you please be more clear how do i use it? ready function and how and on head or on body and do i need js file like this or not
http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js
Member 10749093
3-May-14 11:47am
View
thanks for your answer. but that your code it changes the whole td tags and it's fine. but do you know some how like that to change only tags that i want with same text? for example td tag has ID
Member 10749093
2-May-14 20:33pm
View
for example we make application on visual basic and add 1 text box and 1 button
then put command says if text box 1 . text equals "Hello" then message box . show "Hello World"
(this is just some example. hope it help you to understand)
Member 10749093
2-May-14 20:30pm
View
not yet sure my friend. i just want to change the "Text" that's between tags.
"Hello" into "Hello World"
so give me any other solution please if you can using Javascript or any anything
for example, while page loading or loaded and if between tags equals "Hello" then it should change it to "Hello World"
Member 10749093
2-May-14 19:50pm
View
thanks for your replay. if i'm correct, PHP will generate what i want on page and it doesn't change tags or what ever while page loading like javascript does. am i right?
Member 10749093
2-May-14 18:56pm
View
i appreciate you response. as i said on my question i don't know much but maybe i learn something from CodeProject members. you don't have to say such things to show me yourself like what you said. thanks.
Member 10749093
23-Apr-14 23:51pm
View
i know d is HTML tag but i want some how change it's content using php
for example if in td tag equals Hello then i want php to change it to Hello2
Member 10749093
23-Apr-14 23:50pm
View
Deleted
i know d is HTML tag but i want some how change it's content using php
for example while page loadin if in td tag equals Hello then i want php to change it to Hello2
Member 10749093
14-Apr-14 21:30pm
View
ok, thanks for your all help
Member 10749093
14-Apr-14 20:51pm
View
don't write or code for me, just give me some example for doing that please
look at this link page source : http://test-page.atspace.eu
just give me some example for that please
Member 10749093
14-Apr-14 20:45pm
View
if you don't mind @AmitGajjar, i want to give you a page link has simple HTML codes and make that simple thing for me please and give me source application please.
sorry i don't have that much experience in coding
Member 10749093
14-Apr-14 20:24pm
View
oh 1 more question please,
will it work with divs that doesn't have ID or class or name?
Member 10749093
14-Apr-14 20:22pm
View
ok then, i'll try it
Thank you very much.
Member 10749093
14-Apr-14 20:06pm
View
Thank you very much for your replay.
but i don't want that change with javascript, but change it only from my side
example, like adblocker, it blocks the ad only
so i want to make a program that already contains that divs to be removed on button
and when i click on that button, it removes that div only
Show More