Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

hosam alaa

Members
  • Joined

  • Last visited

Everything posted by hosam alaa

  1. Clients need it to be local they don't have internet connections, actually it is a pharmacy management system.
  2. Thanks for my friends who tried to help but the issue that desktop applications may be converted to exe file which make the code hidden and uneditable so you can save your application copyright using a key the client put while installation but the webapplication which i will install to clients locally i can't make this key because anyother developer may edit the code and remove the key lines of code. anyway i found a term on internet called "php obfuscators", it converts your code to unreadable code, i think this technique may make the code more slow while compilation but i will install the app locally so it will not affect.
  3. Hello, I am thinking to develop a web application in php and install it locally in my customers machiens after installing appache in their pcs. but my question is, how can i save the copyright? the customers may send copies of it to each other and also other developers may modify my code. I need a way or suggestion to make my code uneditable or something like this.. any suggestions or ideas?? Thanks..
  4. I tried this code <!DOCTYPE html> <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"> </script> </head> <body> <div id="test"></div> <script> function fn1() { setTimeout(function(){document.getElementById('test').innerHTML = 'text1'},5000); } function fn3(){ document.getElementById('test').innerHTML = 'text2'; } var callbacks = $.Callbacks(); callbacks.add( fn1 ); callbacks.add( fn3 ); callbacks.fire(); </script> </body> </html> what is need that the result to be text2, but what happened that it was text2 then it back to text1. so callbacks not solved my issue .
  5. Thank you Samus, I will read your suggested article.
  6. Hello, I have a question about the Ajax and I need your help. Now lets assume that I created an ajax function get last updated data from database and the time interval between calls is 1 second for example. the calls should be like this 1- getData(); return 1. 2- getData(); return 2. 3- getData(); return 3. 4- getData(); return 4. 5- getData(); return 5. 6- getData(); return 6. So what happened that sometimes the thread of call #6 run before the call #5 so the updated data will be invalid. So i want to make sure that the calls arrangement is correct so the updated data is always return. I hope my question is clear, Thanks.
  7. hello i have a simple question lets say i have this code <div id="myid"> <a href="#">link</a> </div> well.. inside the JavaScript i can call the div using document.getElementById("myid") but i want to call the <a></a> which is inside this div i want to call the link not the div and i don't have the link name or its id thanks
  8. hello i want to set width in css after calculation i can do.. width: 900px or 80%; but how to make width: (100% - 900px)/2; in css?? thanks
  9. hello all, i want to ask how to know the user homepage so if i know that our site is his homepage so i don't need to ask him if i know that our site not his homepage so i give him notification to ask him to make us his homepage thanks all
  10. hello friends i have a question and i hope i find its reply i want to allow users to create subdomains in my website so now i want to create a page with a form that ask me about name and when i click ok it create subdomain with that name the question is how to create the subdomain by php i uses CPanel thanks alot hosam
  11. iam already search but i can't find the solution so i ask webdevelopers here and hope i find the solution and if i found it i will write it here too
  12. hope i find the solution...
  13. hello first of all, i hope u all are fine i have a Q looooooool i mainly have Q and problems and so we can learn from out problems i have a parent page and has iframe of other page when i put normal refresh html tag like echo'<META HTTP-EQUIV="Refresh" CONTENT="0; url=page.php">'; it refresh within same frame but i wanna to make the parent page refresh how can i make that in php???? hope my Q is clear and the solution is simple thanks hosam alaa
  14. i found the solution add this to top of php code header ( "p3p:CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\""); and it appear works with me thanks for all who try to help
  15. hope i find a solution or alternatives to my problem
  16. first of all thanks for reply i know that iframe isn't good in most situations cuz search engines not index it, but actually it is useful in alot of other situations like facebook like button which put on other websites it uses iframe and google adsense it uses iframe too. the situation of my code is similer i want to include a login page in a blogger in blogsot so i can't use include function in this problem but i can use iframes. the problem now is that i can't access cookies from this iframe but in facebook like box which uses iframe too but they can access cookies so they can show me login inside the iframe and that what i ask about, How to access cookies inside the IFrame hope i find a solution or alternative for this situation ... thanks again for trying to help
  17. i forget to say that i use php language
  18. hello i have a Q and i hope i find a reply i made a login page which use cookies and when i put this page in iframe it stopped saveing the cookies and it not work i wanna to ask how to use cookies within iframe?? and if no solutions - i don't hope that - what is the alternatives? thanks
  19. yes the php code work but the javascript code not work thanks for help
  20. hope my Q is simple to understand
  21. hello all i have a Q and i hope i find a solution i have a page i don't know its url this page contain a frame which it src is page1.php no i want a code to get the page url which contains the frame of page1.php the Q in other way i want to get the outer frame url in the inner frame page? in php code hope my Q is clear and simple thanks
  22. i think u have a problem in ur css some times i find problems like this and i check my css part by part copy ur html file del all ur html code and past part by part till the problem happen again then check ur css code -------- hosam alaa www.sa7afa.net
  23. i did it u can check my home page to see the script http://www.sa7afa.net/new/ ------- hosam alaa www.sa7afa.net
  24. i updated my reply above. hosam alaa www.sa7afa.net
  25. hi, actually i can't understand ur Q but i will reply as i can understand i think u wana to user the mail which sent to the javascript function u can do that by coding a function and put a variable like this <script> subscribeUser(mail){ //now mail has the mail send by the input field and u can use it alert(mail); // example for use } </script> ------------- if ur Q about the event of submittion u can use onsubmit so ur code will be like this <form action="#" onsubmit="subscribeUser('testemail5@hotmail.com'); return false;"> <input name="subscribe_email" type="text" value="Enter email address here..." /> <input name="subscribe_submit" type="submit" value="Subscribe" /> </form> i think u may want to make the email sent isn't fixed so u shouldn't send the mail to the function, let me tell u how.. -put this code on html body <form action="javascript:void(0)" onsubmit="subscribeUser();"> <input name="subscribe_email" type="text" id="subscribe_email" value="Enter email address here..." /> <input name="subscribe_submit" type="submit" value="Subscribe" /> </form> the code above will call a function subscriberuser() when u click the button but will not send the mail to the function -put this code on html head <script language="javascript"> function subscribeUser(){ var mail = document.getElementById('subscribe_email'); alert(mail); //example for use } </script> the code above will called when u click the button and it will get the mail written in the text fiend cuz we put an id to the text field and the funtion will get the text from this id by document.getElementById('subscribe_email'); and will put it on a var so u can use it. hope i can understand ur need and i hope i can help more hosam alaa www.sa7afa.net

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.