dsdsm2016 2011-07-07 05:42
浏览 91

Javascript代码在Ubuntu / Firefox中不起作用 - php / postgresql

I recently converted php/mysql user-login code to php/postgresql. Everything seems to be fine except for the places where there is call to javascript for invoking some buttons (e.g. Register, Forget Password etc). The same javascript code (used in mysql) works fine for Firefox/Ubuntu but the buttons do nothing in postgresql version with Firefox/Ubuntu. Since the javascript code is same for both mysql and postgresql, I believe it shouldn't depend on whether it is mysql or postgresql. Is there something I need to include for this migration or am I missing something? Any help will be appreciated.

Update This is the basic code for "send password" button that only displays ajaxloader and does nothing

<form action="" method="" name="form_passwprocess" id="form_passwprocess">

                <label>Email id</label>

                <input class="inplaceError" type="text" id="emailid" name="emailid" maxlength="120" value=""/>

                <input type="hidden" name="forgetpasswordaction" value="1"/>

                <div style="clear:both;"></div>

        <a id="_forgetpassw_btt" class="button">Send Password</a>

        <div id="emailid_error" class="error">

                    <!--div class="errorimg" style="display:none;">This is an error</div-->

            </div>

                    <img style="display:none;margin-bottom:15px;" class="ajaxload" id="ajaxld" src="images/ajax-loader.gif"/>

         </form>
  • 写回答

2条回答 默认 最新

  • duanha3539 2011-07-07 05:50
    关注

    As long as your javascript code is coming from flat files and not inside the DB, the DB switch should have nothing to do with this, as you note, unless something has gone completely haywire. Just debug your javascript as normal and ignore the DB issue. Maybe there's a timing issue where the page loads faster in one of them and your event listener code is not properly wrapped in a document.ready callback function. Are you setting up your button event handlers within a document.ready callback?

    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog