[Solved] how can i do the following on my website? [closed]

try this but im not sure it works. JSFiddle – link EDIT: Html <body> <div id=”box”> <a href=”https://stackoverflow.com/questions/23628933/javascript:show();” >Link</a> </div> <div id=”box2″> <iframe src=”” id=”frame” width=100% height=100%></iframe> <div id=”close”><input type=”button” onclick=”closeIframe()” value=”X” /></div> </div> </body> Javascript function show() { box= document.getElementById(“box”); box.style.visibility=”hidden”; frame=document.getElementById(“box2″); frame.style.visibility=”visible”; } function closeIframe() { box2=document.getElementById(“box2″); box2.style.visibility=”hidden”; box= document.getElementById(“box”); box.style.visibility=”visible”; } CSS … Read more

[Solved] Some fake data coming automatically in webserver databse

Quick workaround: Add a validation on Laravel side (server side validation) with a regex allowing only non-russian characters. Then Post your code with implementation of Google reCAPTCHA, there we’ll find the answer. Which version of Google reCAPTCHA you are using..? 1 solved Some fake data coming automatically in webserver databse

[Solved] Web scraping photo in PHP

You can use regex to extract only background image or background:url format $str=” <div class=”thumb”> <a href=”http://goruzont.blogspot.com/2017/04/blog-post_6440.html” style=”background:url(https://1.bp.blogspot.com/-6vpIH5iqPYs/WPzlNdxsRpI/AAAAAAAAntU/d7U_Ch_6FiIPwosNL4tWwqBeXw8qwo2nACLcB/s1600/1424051.jpg) no-repeat center center;background-size:cover”> <span class=”thumb-overlay”></span></a> </div>”; preg_match_all(‘~\bbackground(-image)?\s*:(.*?)\(\s*(\’|”)?(?<image>.*?)\3?\s*\)~i’,$str,$matches); $images = $matches[‘image’]; foreach($images as $img){ echo $img; } # https://1.bp.blogspot.com/-6vpIH5iqPYs/WPzlNdxsRpI/AAAAAAAAntU/d7U_Ch_6FiIPwosNL4tWwqBeXw8qwo2nACLcB/s1600/1424051.jpg 3 solved Web scraping photo in PHP

[Solved] JavaScript alert mechanism not working

Problem is in your for loop condition.It is iterating till length+1 element.Just remove = condition and it will work. function validateRadios() { var c = document.getElementsByName(“qualification”); for(var a=0;a<c.length;a++) { if(c[a].checked ) { alert(“Form OK!”); return true; } } alert(“Please select one”); return false; } <form onSubmit=”return validateRadios();”> Select your qualification Intermediate<input type=”radio” name=”qualification” value=”inter” /> … Read more

[Solved] How to extract only certain data with file_get_contents

The best solution is probably to process the $homepage variable after it has been loaded. Have a look at String functions and regular expressions. file_get_contents() supports offset and maxlen options that can be used to control what parts of the file get loaded, but offset has behavior described by the documentation as “unpredictable” when used … Read more

[Solved] Where are my mistakes in my scrapy codes?

The main issue with your code is using of .select instead of .css. Here is what do you need but I’m not sure about titles part (may be you need it on other pages): def parse(self, response): titles = response.xpath(“//div[@class=”artist”]”) # items = [] for title in titles: item = ArtistlistItem() item[“artist”] = title.css(“h2::text”).get() item[“biograpy”] … Read more

[Solved] Simple HTML/CSS website requires a form content placement in an email message

If you’re adamant you that you don’t want to use PHP, you can always do something like this: (It’s not really considered best practice) <form action=”mailto:[email protected]?Subject=Signup%20Info” enctype=”text/plain” method=”post”> <p><label for=”firstName”>First Name:</label><p> <p><input type=”text” name=”firstName” id=”firstName” required><p><br> <p><label for=”lastName”>Last Name:</label><p> <p><input type=”text” name=”lastName” id=”lastName” required><p><br> <input type=”submit” value=”Submit”> </form> Obviously, the mailto will redirect your user … Read more

[Solved] web 2.0 sucks huge floppy disks? [closed]

No it doesn’t You don’t have to use CSS. You can use inline styles, but it won’t be right. Using the CSS is a good coding practice and you just need to learn it better. Yes. If you google it, you’ll find several links. Here is just some examples: https://css-tricks.com/building-a-circular-navigation-with-css-clip-paths/ http://www.cssscript.com/pure-css-circle-menu-with-css3-transitions-transforms/ solved web 2.0 sucks … Read more